Skip to content

Commit

Permalink
qlcnic: Fix error code in probe
Browse files Browse the repository at this point in the history
Return -EINVAL if we can't find the correct device.  Currently it
returns success.

Fixes: 1315918 ("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>
  • Loading branch information
Dan Carpenter authored and kuba-moo committed Dec 17, 2020
1 parent 86eb09b commit 0d52848
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0d52848

Please sign in to comment.