Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352110
b: refs/heads/master
c: 25060d8
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Aring authored and David S. Miller committed Feb 6, 2013
1 parent 0470468 commit b237051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: fc4e98dbbaa30ca2180df0b2b0d0608045ed3f19
refs/heads/master: 25060d8f3f2c21daadb4fc1fb0e37ce2c992e30b
7 changes: 1 addition & 6 deletions trunk/net/mac802154/wpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,12 @@ static int mac802154_header_create(struct sk_buff *skb,
struct ieee802154_addr dev_addr;
struct mac802154_sub_if_data *priv = netdev_priv(dev);
int pos = 2;
u8 *head;
u8 head[MAC802154_FRAME_HARD_HEADER_LEN];
u16 fc;

if (!daddr)
return -EINVAL;

head = kzalloc(MAC802154_FRAME_HARD_HEADER_LEN, GFP_KERNEL);
if (head == NULL)
return -ENOMEM;

head[pos++] = mac_cb(skb)->seq; /* DSN/BSN */
fc = mac_cb_type(skb);

Expand Down Expand Up @@ -210,7 +206,6 @@ static int mac802154_header_create(struct sk_buff *skb,
head[1] = fc >> 8;

memcpy(skb_push(skb, pos), head, pos);
kfree(head);

return pos;
}
Expand Down

0 comments on commit b237051

Please sign in to comment.