mac80211: fix two remote exploits
[firefly-linux-kernel-4.4.55.git] / net / mac80211 / agg-tx.c
index 206fd82f0c7698b4b2c08d38df10c50c89657c7c..63224d1ee8dd686b3984491a82cc9e99924907b1 100644 (file)
@@ -545,7 +545,7 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_hw *hw,
        struct sta_info *sta;
        int ret = 0;
 
-       if (WARN_ON(!local->ops->ampdu_action))
+       if (!local->ops->ampdu_action)
                return -EINVAL;
 
        if (tid >= STA_TID_NUM)