1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/chelsio
Zheyu Ma b82d71c0f8 net: chelsio: cxgb4vf: Fix an error code in cxgb4vf_pci_probe()
During the process of driver probing, probe function should return < 0
for failure, otherwise kernel will treat value == 0 as success.

Therefore, we should set err to -EINVAL when
adapter->registered_device_map is NULL. Otherwise kernel will assume
that driver has been successfully probed and will cause unexpected
errors.

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-11-23 12:15:53 +00:00
..
cxgb ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
cxgb3 pci-v5.16-changes 2021-11-06 14:36:12 -07:00
cxgb4 cxgb4: fix eeprom len when diagnostics not implemented 2021-11-11 11:42:13 +00:00
cxgb4vf net: chelsio: cxgb4vf: Fix an error code in cxgb4vf_pci_probe() 2021-11-23 12:15:53 +00:00
inline_crypto tcp: switch orphan_count to bare per-cpu counters 2021-10-15 11:28:34 +01:00
libcxgb net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile chelsio/chtls: separate chelsio tls driver from crypto driver 2020-08-21 14:15:15 -07:00