summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorLuo bin <luobin9@huawei.com>2020-05-10 19:01:08 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-20 08:17:13 +0200
commita6bbde923ab403ef71d746e7b902c5c5d736a4cd (patch)
treeaa6b1d549edaefc7999d906e3b14b5c97be9c09a /drivers/net/dsa/dsa_loop.c
parent64e5621a15b6a9dde0780b7ceb018029f5cf1e03 (diff)
hinic: fix a bug of ndo_stop
[ Upstream commit e8a1b0efd632d1c9db7d4e93da66377c7b524862 ] if some function in ndo_stop interface returns failure because of hardware fault, must go on excuting rest steps rather than return failure directly, otherwise will cause memory leak.And bump the timeout for SET_FUNC_STATE to ensure that cmd won't return failure when hw is busy. Otherwise hw may stomp host memory if we free memory regardless of the return value of SET_FUNC_STATE. Fixes: 51ba902a16e6 ("net-next/hinic: Initialize hw interface") Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions