summaryrefslogtreecommitdiff
path: root/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-03-02 11:09:33 +0400
committerDavid S. Miller <davem@davemloft.net>2014-03-03 04:19:44 +0400
commit4c7f778e566ac5861b2837ee755d8cdcd1ccacc5 (patch)
tree7f2daba7ff4776ad4e2a18e876a314fe3892bcc0 /net/ieee802154
parent1bc693e18a0b279a8b1d174485750601f3f44d7b (diff)
downloadlinux-4c7f778e566ac5861b2837ee755d8cdcd1ccacc5.tar.xz
6lowpan: fix type of datagram size parameter
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>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/reassembly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/reassembly.c b/net/ieee802154/reassembly.c
index eb5995e74316..4511fc22ef16 100644
--- a/net/ieee802154/reassembly.c
+++ b/net/ieee802154/reassembly.c
@@ -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)
{