diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-27 12:13:31 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-27 13:07:42 -0400 |
commit | c730c90316aa5753c6b2d3d5af40085c220e3a91 (patch) | |
tree | a252426552c7946e50aa9169bef57fe74059a003 /net/mac802154/rx.c | |
parent | c5c47e67bcd24638a059b1b5e9ec18c95f8634ca (diff) |
mac802154: rx: document ieee802154_rx() context requirement
This patch is similar like d20ef63d32461332958661df73e21c0ca42601b0
("mac80211: document ieee80211_rx() context requirement"). The
netif_receive_skb call requires with softirqs disabled. This patch
adds a warning if softirqs are pending while calling ieee802154_rx.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/rx.c')
-rw-r--r-- | net/mac802154/rx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 2851a3f7ac0b..c4df3210c5e6 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c | |||
@@ -61,6 +61,8 @@ fail: | |||
61 | 61 | ||
62 | void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb) | 62 | void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb) |
63 | { | 63 | { |
64 | WARN_ON_ONCE(softirq_count() == 0); | ||
65 | |||
64 | mac802154_subif_rx(hw, skb); | 66 | mac802154_subif_rx(hw, skb); |
65 | } | 67 | } |
66 | EXPORT_SYMBOL(ieee802154_rx); | 68 | EXPORT_SYMBOL(ieee802154_rx); |