Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315382
b: refs/heads/master
c: 4576039
h: refs/heads/master
v: v3
  • Loading branch information
Tony Cheneau authored and David S. Miller committed Jul 17, 2012
1 parent e59ba14 commit 78ce1e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4787a15432384826a0bed42d189fc2a97dc73ea
refs/heads/master: 4576039ffc04ffe672081159a11cf6e0b875a069
6 changes: 3 additions & 3 deletions trunk/net/ieee802154/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static inline int lowpan_fetch_skb_u16(struct sk_buff *skb, u16 *val)
if (unlikely(!pskb_may_pull(skb, 2)))
return -EINVAL;

*val = skb->data[0] | (skb->data[1] << 8);
*val = (skb->data[0] << 8) | skb->data[1];
skb_pull(skb, 2);

return 0;
Expand Down Expand Up @@ -1006,8 +1006,8 @@ lowpan_skb_fragmentation(struct sk_buff *skb)
/* first fragment header */
head[0] = LOWPAN_DISPATCH_FRAG1 | (payload_length & 0x7);
head[1] = (payload_length >> 3) & 0xff;
head[2] = tag & 0xff;
head[3] = tag >> 8;
head[2] = tag >> 8;
head[3] = tag & 0xff;

err = lowpan_fragment_xmit(skb, head, header_length, 0, 0);

Expand Down

0 comments on commit 78ce1e9

Please sign in to comment.