mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
qlcnic: Fix error code in probe
Return -EINVAL if we can't find the correct device. Currently it
returns success.
Fixes: 13159183ec
("qlcnic: 83xx base driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X9nHbMqEyI/xPfGd@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
86eb09b63d
commit
0d52848632
1 changed files with 1 additions and 0 deletions
|
@ -2492,6 +2492,7 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
qlcnic_sriov_vf_register_map(ahw);
|
||||
break;
|
||||
default:
|
||||
err = -EINVAL;
|
||||
goto err_out_free_hw_res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue