Search Linux Wireless

[PATCH 1/1] netlink: nla_nest_end return "unsigned init"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



skb->len has unsigned int, return the correct value from nla_nest_end call.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux