patch-2.4.22 linux-2.4.22/net/netlink/af_netlink.c

Next file: linux-2.4.22/net/netsyms.c
Previous file: linux-2.4.22/net/irda/qos.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/net/netlink/af_netlink.c linux-2.4.22/net/netlink/af_netlink.c
@@ -420,6 +420,11 @@
 	if (sk == NULL)
 		goto no_dst;
 
+	/* Don't bother queuing skb if kernel socket has no input function */
+	if (sk->protinfo.af_netlink->pid == 0 &&
+	    !sk->protinfo.af_netlink->data_ready)
+		goto no_dst;
+
 #ifdef NL_EMULATE_DEV
 	if (sk->protinfo.af_netlink->handler) {
 		skb_orphan(skb);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)