diff options
author | Luo bin <luobin9@huawei.com> | 2020-05-10 19:01:08 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-05-10 20:02:01 -0700 |
commit | e8a1b0efd632d1c9db7d4e93da66377c7b524862 (patch) | |
tree | e8611759a8882be80464760ba1bd08e32f64fe6a /drivers/net/ipa/ipa_data-sc7180.c | |
parent | 3047211ca11bf77b3ecbce045c0aa544d934b945 (diff) | |
download | linux-next-e8a1b0efd632d1c9db7d4e93da66377c7b524862.tar.gz |
hinic: fix a bug of ndo_stop
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>
Diffstat (limited to 'drivers/net/ipa/ipa_data-sc7180.c')
0 files changed, 0 insertions, 0 deletions