6lowpan: fix type of datagram size parameter
authorAlexander Aring <alex.aring@gmail.com>
Sun, 2 Mar 2014 07:09:33 +0000 (08:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 00:19:44 +0000 (19:19 -0500)
Datagram size value is u16 because we convert it to host byte order
and we need to read it. Only the tag value belongs to __be16 type.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/reassembly.c

index eb5995e74316bc2c5369820f624be010262271cb..4511fc22ef16dca58a0af84ab18c51a599cb40c0 100644 (file)
@@ -35,7 +35,7 @@ static struct inet_frags lowpan_frags;
 static int lowpan_frag_reasm(struct lowpan_frag_queue *fq,
                             struct sk_buff *prev, struct net_device *dev);
 
-static unsigned int lowpan_hash_frag(__be16 tag, __be16 d_size,
+static unsigned int lowpan_hash_frag(__be16 tag, u16 d_size,
                                     const struct ieee802154_addr *saddr,
                                     const struct ieee802154_addr *daddr)
 {