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
- Lines: 12
- Date:
2003-08-25 04:44:44.000000000 -0700
- Orig file:
linux-2.4.21/net/netlink/af_netlink.c
- Orig date:
2003-06-13 07:51:39.000000000 -0700
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)