bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] qed: Fix missing error code in qed_slowpath_start()
@ 2021-10-09  8:09 Jiapeng Chong
  2021-10-09 12:50 ` patchwork-bot+netdevbpf
  2021-10-11  5:17 ` [EXT] " Alok Prasad
  0 siblings, 2 replies; 3+ messages in thread
From: Jiapeng Chong @ 2021-10-09  8:09 UTC (permalink / raw)
  To: aelior
  Cc: GR-everest-linux-l2, davem, kuba, linux, ast, daniel, hawk,
	john.fastabend, netdev, linux-kernel, bpf, chongjiapeng

From: chongjiapeng <jiapeng.chong@linux.alibaba.com>

The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'rc'.

Eliminate the follow smatch warning:

drivers/net/ethernet/qlogic/qed/qed_main.c:1298 qed_slowpath_start()
warn: missing error code 'rc'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Fixes: d51e4af5c209 ("qed: aRFS infrastructure support")
Signed-off-by: chongjiapeng <jiapeng.chong@linux.alibaba.com>
---
 drivers/net/ethernet/qlogic/qed/qed_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qed_main.c
index 5e7242304ee2..359ad859ae18 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_main.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_main.c
@@ -1295,6 +1295,7 @@ static int qed_slowpath_start(struct qed_dev *cdev,
 			} else {
 				DP_NOTICE(cdev,
 					  "Failed to acquire PTT for aRFS\n");
+				rc = -EINVAL;
 				goto err;
 			}
 		}
-- 
2.19.1.6.gb485710b


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-11  5:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09  8:09 [PATCH] qed: Fix missing error code in qed_slowpath_start() Jiapeng Chong
2021-10-09 12:50 ` patchwork-bot+netdevbpf
2021-10-11  5:17 ` [EXT] " Alok Prasad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).