Netdev List
 help / color / mirror / Atom feed
* another git excuse patch
@ 2005-05-19  1:23 jamal
  2005-05-19  1:28 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: jamal @ 2005-05-19  1:23 UTC (permalink / raw)
  To: Herbert Xu; +Cc: netdev, David S. Miller

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]


Against Herbert's ipsec-2.6.git. 

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


cheers,
jamal

[-- Attachment #2: ipsec12_p --]
[-- Type: text/plain, Size: 635 bytes --]

net/xfrm/xfrm_user.c: needs update
Index: net/xfrm/xfrm_user.c
===================================================================
--- c24f26cfe03081d10a3a3f66d5d3e503395090b4/net/xfrm/xfrm_user.c  (mode:100644)
+++ uncommitted/net/xfrm/xfrm_user.c  (mode:100644)
@@ -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;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-19  1:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  1:23 another git excuse patch jamal
2005-05-19  1:28 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox