Unverified Commit 2e693d58 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

parents 7c475d6c b53d6e81
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1949,6 +1949,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);