Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa900b9c authored by Gao feng's avatar Gao feng Committed by Pablo Neira Ayuso
Browse files

netfilter: ebt_ulog: remove unnecessary spin lock protection



No need for spinlock to protect the netlink skb in the
ebt_ulog_fini path. We are sure there is noone using it
at that stage.

Signed-off-by: default avatarGao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent d00bd3d4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -319,12 +319,11 @@ static void __exit ebt_ulog_fini(void)
	for (i = 0; i < EBT_ULOG_MAXNLGROUPS; i++) {
		ub = &ulog_buffers[i];
		del_timer(&ub->timer);
		spin_lock_bh(&ub->lock);

		if (ub->skb) {
			kfree_skb(ub->skb);
			ub->skb = NULL;
		}
		spin_unlock_bh(&ub->lock);
	}
	netlink_kernel_release(ebtulognl);
}