aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorZheyu Ma <[email protected]>2022-03-06 05:56:32 +0000
committerJakub Kicinski <[email protected]>2022-03-07 22:18:52 -0800
commit69adcb988a0675ce001dfc416d56fba2e8a85f48 (patch)
tree811afe1fa516699ac96736695846336e2659bf9e /drivers/fpga/fpga-bridge.c
parent13d04d79701ba240969b296903de14db3734ab25 (diff)
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions