Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0737ab2 authored by chongjiapeng's avatar chongjiapeng Committed by Greg Kroah-Hartman
Browse files

qed: Fix missing error code in qed_slowpath_start()



commit a5a14ea7b4e55604acb0dc9d88fdb4cb6945bc77 upstream.

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Fixes: d51e4af5 ("qed: aRFS infrastructure support")
Signed-off-by: default avatarchongjiapeng <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eaa8097f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1067,6 +1067,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;
			}
		}