]> git.itanic.dy.fi Git - linux-stable/commitdiff
carl9170: replace GFP_ATOMIC in ampdu_action, it can sleep
authorChristian Lamparter <chunkeey@gmail.com>
Wed, 2 Mar 2022 19:51:34 +0000 (20:51 +0100)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 10 Mar 2022 15:53:17 +0000 (17:53 +0200)
Since ~2010, the driver is allowed to sleep in the ampdu_action
callback thanks to:
commit 85ad181ea788 ("mac80211: allow drivers to sleep in ampdu_action")

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/0036538d0933626a1a5eb2c2c3935cf173028926.1646250537.git.chunkeey@gmail.com
drivers/net/wireless/ath/carl9170/main.c

index 2208ec80048218db13a8acd99e5809a6525d012a..f6974aff0c59448e9b7fd2d643aa6b5c4deb5c65 100644 (file)
@@ -1412,7 +1412,7 @@ static int carl9170_op_ampdu_action(struct ieee80211_hw *hw,
                        return -EOPNOTSUPP;
 
                tid_info = kzalloc(sizeof(struct carl9170_sta_tid),
-                                  GFP_ATOMIC);
+                                  GFP_KERNEL);
                if (!tid_info)
                        return -ENOMEM;