mac802154: tx: allow xmit complete from hard irq
authorAlexander Aring <alex.aring@gmail.com>
Sun, 17 May 2015 19:44:56 +0000 (21:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 19 May 2015 09:44:45 +0000 (11:44 +0200)
Replace consume_skb with dev_consume_skb_any in ieee802154_xmit_complete
which can be called in hard irq and other contexts.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/util.c

index 150bf807e572eb85458371d1c8e930e2cb7ec0b2..583435f3893037e45d4a5879b66b4cda3bb6f27f 100644 (file)
@@ -85,11 +85,10 @@ void ieee802154_xmit_complete(struct ieee802154_hw *hw, struct sk_buff *skb,
                        hrtimer_start(&local->ifs_timer,
                                      ktime_set(0, hw->phy->sifs_period * NSEC_PER_USEC),
                                      HRTIMER_MODE_REL);
-
-               consume_skb(skb);
        } else {
                ieee802154_wake_queue(hw);
-               consume_skb(skb);
        }
+
+       dev_consume_skb_any(skb);
 }
 EXPORT_SYMBOL(ieee802154_xmit_complete);