patch-2.1.102 linux/net/netlink/af_netlink.c
Next file: linux/net/netsyms.c
Previous file: linux/net/ipv6/route.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu May 14 10:26:23 1998
-  Orig file: 
v2.1.101/linux/net/netlink/af_netlink.c
-  Orig date: 
Fri May  8 23:14:57 1998
diff -u --recursive --new-file v2.1.101/linux/net/netlink/af_netlink.c linux/net/netlink/af_netlink.c
@@ -720,7 +720,7 @@
 	if (err == 0)
 		size = NLMSG_SPACE(sizeof(struct nlmsgerr));
 	else
-		size = NLMSG_SPACE(4 + nlh->nlmsg_len);
+		size = NLMSG_SPACE(4 + NLMSG_ALIGN(nlh->nlmsg_len));
 
 	skb = alloc_skb(size, GFP_KERNEL);
 	if (!skb)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov