]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
qed: Fix missing error code in qed_slowpath_start()
authorchongjiapeng <jiapeng.chong@linux.alibaba.com>
Sat, 9 Oct 2021 08:09:26 +0000 (16:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Oct 2021 09:23:05 +0000 (11:23 +0200)
commitd0737ab232f631c366d3b2ca3b3c828d6dd6d309
tree0f50150868ca392f9db6c500014458d310b53a29
parenteaa8097fa6ea34646cf9253044e151ce65889aab
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: Abaci Robot <abaci@linux.alibaba.com>
Fixes: d51e4af5c209 ("qed: aRFS infrastructure support")
Signed-off-by: chongjiapeng <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/qed/qed_main.c