]> git.itanic.dy.fi Git - linux-stable/commit
qlcnic: Fix error code in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2020 08:38:04 +0000 (11:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:42:41 +0000 (13:42 +0100)
commit979fdd055854ce6d263e18f0d5c0bf2cfc0740db
tree34cbecf3b2ae380a91a8c6b943ed7bf9c0e86a5e
parent3336a75e04b314db69856d636e1287a3b942c92f
qlcnic: Fix error code in probe

[ Upstream commit 0d52848632a357948028eab67ff9b7cc0c12a0fb ]

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 <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X9nHbMqEyI/xPfGd@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c