From: Wei Yang <Wei.Yang@xxxxxxxxxxxxx> In case of RT kernel, the return value of softirq_count() always equal to 0, we need to use in_serving_softirq to decide whether the current context is in softirq context. Signed-off-by: Wei Yang <Wei.Yang@xxxxxxxxxxxxx> --- net/mac80211/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index c6844ad..80fac46 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -3226,7 +3226,7 @@ void ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb) struct ieee80211_supported_band *sband; struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb); - WARN_ON_ONCE(softirq_count() == 0); + WARN_ON_ONCE(!in_serving_softirq()); if (WARN_ON(status->band >= IEEE80211_NUM_BANDS)) goto drop; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html