mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
net: hns3: handle pending reset while reset fail
The ongoing lower-level reset will fail when there is a higher-level
reset occurs, so the error handler should deal with this situation.
Fixes: 6a5f6fa382 ("net: hns3: add error handler for hclgevf_reset()")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4f765d3e52
commit
cf1f212916
1 changed files with 2 additions and 0 deletions
|
|
@ -1474,6 +1474,8 @@ err_reset:
|
|||
*/
|
||||
hclgevf_cmd_init(hdev);
|
||||
dev_err(&hdev->pdev->dev, "failed to reset VF\n");
|
||||
if (hclgevf_is_reset_pending(hdev))
|
||||
hclgevf_reset_task_schedule(hdev);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue