From: Wey-Yi Guy <wey-yi.w.guy@intel.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org,
ipw3945-devel@lists.sourceforge.net,
Wey-Yi Guy <wey-yi.w.guy@intel.com>
Subject: [PATCH 1/1] netlink: nla_nest_end return "unsigned init"
Date: Mon, 16 May 2011 07:23:30 -0700 [thread overview]
Message-ID: <1305555810-17565-1-git-send-email-wey-yi.w.guy@intel.com> (raw)
skb->len has unsigned int, return the correct value from nla_nest_end call.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
---
include/net/netlink.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/net/netlink.h b/include/net/netlink.h
index 8a3906a..241fc0d 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -1015,7 +1015,8 @@ static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype)
*
* Returns the total data length of the skb.
*/
-static inline int nla_nest_end(struct sk_buff *skb, struct nlattr *start)
+static inline unsigned int nla_nest_end(struct sk_buff *skb,
+ struct nlattr *start)
{
start->nla_len = skb_tail_pointer(skb) - (unsigned char *)start;
return skb->len;
--
1.7.0.4
next reply other threads:[~2011-05-16 14:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-16 14:23 Wey-Yi Guy [this message]
2011-05-16 17:35 ` [PATCH 1/1] netlink: nla_nest_end return "unsigned init" John W. Linville
2011-05-16 17:51 ` David Miller
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=1305555810-17565-1-git-send-email-wey-yi.w.guy@intel.com \
--to=wey-yi.w.guy@intel.com \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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).