]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: hns3: initialize reset_timer before hclgevf_misc_irq_init()
authorJian Shen <shenjian15@huawei.com>
Fri, 25 Oct 2024 09:29:36 +0000 (17:29 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 31 Oct 2024 10:15:43 +0000 (11:15 +0100)
commitd1c2e2961ab460ac2433ff8ad46000582abc573c
tree6e4c8097b456b6fb0a7b55c36cafd97cac563c2f
parent5f62009ff10826fefa215da68831f42b0c36b6fb
net: hns3: initialize reset_timer before hclgevf_misc_irq_init()

Currently the misc irq is initialized before reset_timer setup. But
it will access the reset_timer in the irq handler. So initialize
the reset_timer earlier.

Fixes: ff200099d271 ("net: hns3: remove unnecessary work in hclgevf_main")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c