Skip to contentSkip to conversation

qlcnic: Fix error code in probe

PATCH Applied Dan Carpenter 2 participants 2 messages Dec 16, 2020 – Dec 17, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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")
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +1 -0
index 5a7e240fd469..c2faf96fcade 100644
@@ -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
#1 lore raw
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 -EINVAL if we can't find the correct device. Currently it returns success.

Fixes 13159183ec7a ("qlcnic: 83xx base driver")
---
 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