提交 877d21de 编写于 作者: C chongjiapeng 提交者: Zheng Zengkai

qed: Fix missing error code in qed_slowpath_start()

stable inclusion
from stable-5.10.75
commit ecfd4fa15b06564d5e4f5a03886d28daa4310060
bugzilla: 182987 https://gitee.com/openeuler/kernel/issues/I4I3MP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ecfd4fa15b06564d5e4f5a03886d28daa4310060

--------------------------------

commit a5a14ea7 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: NAbaci Robot <abaci@linux.alibaba.com>
Fixes: d51e4af5 ("qed: aRFS infrastructure support")
Signed-off-by: Nchongjiapeng <jiapeng.chong@linux.alibaba.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 f06ed578
...@@ -1295,6 +1295,7 @@ static int qed_slowpath_start(struct qed_dev *cdev, ...@@ -1295,6 +1295,7 @@ static int qed_slowpath_start(struct qed_dev *cdev,
} else { } else {
DP_NOTICE(cdev, DP_NOTICE(cdev,
"Failed to acquire PTT for aRFS\n"); "Failed to acquire PTT for aRFS\n");
rc = -EINVAL;
goto err; goto err;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册