]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blob - rt-patches/0050-net-wireless-Use-WARN_ON_NORT.patch
Fix memguard and related syscalls
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0050-net-wireless-Use-WARN_ON_NORT.patch
1 From d9c8d1c7ac965df0dd03488a742530cef4ef5873 Mon Sep 17 00:00:00 2001
2 From: Thomas Gleixner <tglx@linutronix.de>
3 Date: Thu, 21 Jul 2011 21:05:33 +0200
4 Subject: [PATCH 050/366] net/wireless: Use WARN_ON_NORT()
5
6 The softirq counter is meaningless on RT, so the check triggers a
7 false positive.
8
9 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
10 ---
11  net/mac80211/rx.c | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
15 index 2b52838..7a681da 100644
16 --- a/net/mac80211/rx.c
17 +++ b/net/mac80211/rx.c
18 @@ -3580,7 +3580,7 @@ void ieee80211_rx_napi(struct ieee80211_hw *hw, struct sk_buff *skb,
19         struct ieee80211_supported_band *sband;
20         struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb);
21  
22 -       WARN_ON_ONCE(softirq_count() == 0);
23 +       WARN_ON_ONCE_NONRT(softirq_count() == 0);
24  
25         if (WARN_ON(status->band >= IEEE80211_NUM_BANDS))
26                 goto drop;
27 -- 
28 1.9.1
29