net: hns3: check resetting status when doing VLAN ops
driver inclusion category: bugfix bugzilla: NA CVE: NA The VLAN ops should check the resetting status firstly, since the device will be reinitialized when resetting. If the reset has not completed, the VLAN ops may access invalid memory. And this checking can make it return as soon as possible. Feature or Bugfix:Bugfix Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com> Reviewed-by: Nshenjian <shenjian15@huawei.com> Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录