Skip to contentSkip to conversation

another git excuse patch

PATCH jamal 2 participants 2 messages May 19, 2005

Subsystems (3)
lore
Share & tools
lore

jamal

author
#0 lore raw

Against Herbert's ipsec-2.6.git.

Small fixup to use netlink macros instead of hardcoding.
Signed-off-by: Jamal Hadi Salim

cheers,
jamal

net/xfrm/xfrm_user.c: needs update
Index: net/xfrm/xfrm_user.c
===================================================================

net/xfrm/xfrm_user.c (mode:100644) +2 -2
@@ -1114,9 +1114,9 @@
 static int xfrm_exp_state_notify(struct xfrm_state *x, struct km_event *c)
 {
 	struct sk_buff *skb;
+	int len = NLMSG_LENGTH(sizeof(struct xfrm_user_expire));
 
-	/* fix to do alloc using NLM macros */
-	skb = alloc_skb(sizeof(struct xfrm_user_expire) + 16, GFP_ATOMIC);
+	skb = alloc_skb(len, GFP_ATOMIC);
 	if (skb == NULL)
 		return -ENOMEM;
 
maintainer
#1 lore raw
Quoted 5 lines · jamal

Against Herbert's ipsec-2.6.git.

Small fixup to use netlink macros instead of hardcoding.
Signed-off-by: Jamal Hadi Salim

Thanks, I'll add it to my collection.

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt