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

!3912 net: bridge: multicast: fix UAF of net_bridge

parents 5bfcd84f 960c2cc1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3357,6 +3357,7 @@ void br_multicast_dev_del(struct net_bridge *br)
	hlist_move_list(&br->mcast_gc_list, &deleted_head);
	spin_unlock_bh(&br->multicast_lock);

	br_multicast_stop(br);
	br_multicast_gc(&deleted_head);
	cancel_work_sync(&br->mcast_gc_work);