]> git.neil.brown.name Git - history.git/commitdiff
[NETLINK]: Just drop packets for kernel netlink socket with no data_ready handler.
authorJames Morris <jmorris@intercode.com.au>
Sat, 12 Jul 2003 15:45:31 +0000 (08:45 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Sat, 12 Jul 2003 15:45:31 +0000 (08:45 -0700)
net/netlink/af_netlink.c

index 54d88de80e2026b8b9181dbb2ed5c54e9a4dc2dc..8cd678de82eb0a4ae6672543f3f75d9abba2185b 100644 (file)
@@ -430,6 +430,10 @@ retry:
                goto no_dst;
        nlk = nlk_sk(sk);
 
+       /* Don't bother queuing skb if kernel socket has no input function */
+        if (nlk->pid == 0 && !nlk->data_ready)
+               goto no_dst;
+
 #ifdef NL_EMULATE_DEV
        if (nlk->handler) {
                skb_orphan(skb);