net: add addr len check to dev_mc_add
[safe/jmp/linux-2.6] / net / core / datagram.c
index 4ade301..95c2e08 100644 (file)
@@ -271,6 +271,7 @@ int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags)
        }
 
        kfree_skb(skb);
+       atomic_inc(&sk->sk_drops);
        sk_mem_reclaim_partial(sk);
 
        return err;