net: hns3: fix a BUG_ON when affinity notify is triggered before timer setup
driver inclusion
category: bugfix
bugzilla: NA
CVE: NA
Currently when a misc affinity notify is triggered before the
service timer is setup, the timer->function is null when calling
add_timer_on, which causes a BUG_ON problem.
This patch fixes it by move the affinity notify setup after
service timer setup.
Fixes: 99ff3c1cd346 ("net: hns3: add interrupt affinity support for misc interrupt")
Feature or Bugfix:Bugfix
Signed-off-by: NYunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录