linux-stable/drivers/net/ethernet/chelsio
Zheyu Ma 69adcb988a net: cxgb3: Fix an error code when probing the driver
During the process of driver probing, probe function should return < 0
for failure, otherwise kernel will treat value >= 0 as success.

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

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/1646546192-32737-1-git-send-email-zheyuma97@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-03-07 22:18:52 -08:00
..
cxgb chelsio: cxgb: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 16:14:30 +00:00
cxgb3 net: cxgb3: Fix an error code when probing the driver 2022-03-07 22:18:52 -08:00
cxgb4 flow_offload: reject offload for all drivers with invalid police parameters 2022-02-28 11:12:20 +00:00
cxgb4vf cxgb4vf: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:20 -08:00
inline_crypto tcp: switch orphan_count to bare per-cpu counters 2021-10-15 11:28:34 +01:00
libcxgb libcxgb: Don't accidentally set RTO_ONLINK in cxgb_find_route() 2022-01-11 20:36:08 -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