patch-2.0.31 linux/net/netlink.c

Next file: linux/net/netsyms.c
Previous file: linux/net/ipx/af_ipx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.30/linux/net/netlink.c linux/net/netlink.c
@@ -87,6 +87,8 @@
 	unsigned int minor = MINOR(inode->i_rdev);
 	struct sk_buff *skb;
 	skb=alloc_skb(count, GFP_KERNEL);
+	if (!skb)
+		return -ENOBUFS;
 	skb->free=1;
 	memcpy_fromfs(skb_put(skb,count),buf, count);
 	return (netlink_handler[minor])(skb);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov