From: jamal <hadi@cyberus.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev <netdev@oss.sgi.com>, "David S. Miller" <davem@davemloft.net>
Subject: another git excuse patch
Date: Wed, 18 May 2005 21:23:45 -0400 [thread overview]
Message-ID: <1116465825.6240.27.camel@localhost.localdomain> (raw)
[-- 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;
next reply other threads:[~2005-05-19 1:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 1:23 jamal [this message]
2005-05-19 1:28 ` another git excuse patch Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1116465825.6240.27.camel@localhost.localdomain \
--to=hadi@cyberus.ca \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).