Unverified Commit 7e6e2c86 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!13191 net/ncsi: Disable the ncsi work before freeing the associated structure

parents 70ad3510 2325e8f2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1895,6 +1895,8 @@ void ncsi_unregister_dev(struct ncsi_dev *nd)
	list_del_rcu(&ndp->node);
	spin_unlock_irqrestore(&ncsi_dev_lock, flags);

	cancel_work_sync(&ndp->work);

	kfree(ndp);
}
EXPORT_SYMBOL_GPL(ncsi_unregister_dev);