aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r--net/netlink/af_netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 4b91f4b84cb7..e41ce458c2a9 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -789,11 +789,12 @@ int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 pid,
789 sk_for_each_bound(sk, node, &nl_table[ssk->sk_protocol].mc_list) 789 sk_for_each_bound(sk, node, &nl_table[ssk->sk_protocol].mc_list)
790 do_one_broadcast(sk, &info); 790 do_one_broadcast(sk, &info);
791 791
792 kfree_skb(skb);
793
792 netlink_unlock_table(); 794 netlink_unlock_table();
793 795
794 if (info.skb2) 796 if (info.skb2)
795 kfree_skb(info.skb2); 797 kfree_skb(info.skb2);
796 kfree_skb(skb);
797 798
798 if (info.delivered) { 799 if (info.delivered) {
799 if (info.congested && (allocation & __GFP_WAIT)) 800 if (info.congested && (allocation & __GFP_WAIT))