Loading
net: hns3: fix kernel crash problem in concurrent scenario
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9QYBA CVE: NA ---------------------------------------------------------------------- When link status change, the nic driver need to notify the roce/ roh driver to handle this event, but at this time, the roce driver may uninit, then cause kernel crash. To fix the problem, when link status change, need to check whether the roce/roh registered, and when uninit, need to wait link update finish. Fixes: 45e92b7e ("net: hns3: add calling roce callback function when link status change") Signed-off-by:Yonglong Liu <liuyonglong@huawei.com> Signed-off-by:
chenyi <chenyi211@huawei.com>