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
- Lines: 9
- Date:
Wed Oct 15 14:47:26 1997
- Orig file:
v2.0.30/linux/net/netlink.c
- Orig date:
Mon Jun 3 02:42:42 1996
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