diff options
Diffstat (limited to 'net/mac802154/rx.c')
-rw-r--r-- | net/mac802154/rx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 7f820a108a9c..a14cf9ede171 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c | |||
@@ -86,9 +86,8 @@ fail: | |||
86 | static void mac802154_rx_worker(struct work_struct *work) | 86 | static void mac802154_rx_worker(struct work_struct *work) |
87 | { | 87 | { |
88 | struct rx_work *rw = container_of(work, struct rx_work, work); | 88 | struct rx_work *rw = container_of(work, struct rx_work, work); |
89 | struct sk_buff *skb = rw->skb; | ||
90 | 89 | ||
91 | mac802154_subif_rx(rw->dev, skb, rw->lqi); | 90 | mac802154_subif_rx(rw->dev, rw->skb, rw->lqi); |
92 | kfree(rw); | 91 | kfree(rw); |
93 | } | 92 | } |
94 | 93 | ||
@@ -101,7 +100,7 @@ ieee802154_rx_irqsafe(struct ieee802154_dev *dev, struct sk_buff *skb, u8 lqi) | |||
101 | if (!skb) | 100 | if (!skb) |
102 | return; | 101 | return; |
103 | 102 | ||
104 | work = kzalloc(sizeof(struct rx_work), GFP_ATOMIC); | 103 | work = kzalloc(sizeof(*work), GFP_ATOMIC); |
105 | if (!work) | 104 | if (!work) |
106 | return; | 105 | return; |
107 | 106 | ||