Skip to content
Snippets Groups Projects
Commit b82d71c0 authored by Zheyu Ma's avatar Zheyu Ma Committed by David S. Miller
Browse files

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: default avatarZheyu Ma <zheyuma97@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c75a9ad4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment