提交 34932aca 编写于 作者: H Hao Shen 提交者: Yang Yingliang

net: hns3: solve the unlock 2 times when rocee init fault

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

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

When rocee init fault, the rtnl_unlock execute 2 times
Signed-off-by: NHao Shen <shenhao21@huawei.com>
Reviewed-by: NZhong Zhaohui <zhongzhaohui@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 67dfc645
......@@ -3865,7 +3865,7 @@ static int hclge_resume(struct hnae3_ae_dev *ae_dev)
ret = hclge_notify_roce_client(hdev, HNAE3_INIT_CLIENT);
if (ret)
goto err_reset_lock;
return ret;
rtnl_lock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册