qlcnic: Fix error code in probe
PATCH 1/1 qlcnic: Fix error code in probe
Return -EINVAL if we can't find the correct device. Currently it returns success.
Fixes 13159183ec7a ("qlcnic: 83xx base driver")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +1 -0
@@ -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; }
Signature · 1 line
2.29.2
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 8 lines · On Wed, 16 Dec 2020 11:38:04 +0300 you wrote:
Return
-EINVALif we can't find the correct device. Currently it returns success.Fixes 13159183ec7a ("qlcnic: 83xx base driver")Signed-off-by Dan Carpenter <[email protected]>--- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 1 + 1 file changed, 1 insertion(+)
Here is the summary with links:
- [net] qlcnic: Fix error code in probe
https://git.kernel.org/netdev/net/c/0d52848632a3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html