Skip to content

Commit c752cac

Browse files
Yan-Hsuan Chuangjmberg-intel
authored andcommitted
mac80211: fix GFP_KERNEL under tasklet context
cfg80211_sta_opmode_change_notify needs a gfp_t flag to hint the nl80211 stack when allocating new skb, but it is called under tasklet context here with GFP_KERNEL and kernel will yield a warning about it. Cc: [email protected] Fixes: ff84e7b ("mac80211: Add support to notify ht/vht opmode modification.") Signed-off-by: Yan-Hsuan Chuang <[email protected]> ACKed-by: Larry Finger <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent 81c5dce commit c752cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/mac80211/rx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,7 +3063,7 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)
30633063
cfg80211_sta_opmode_change_notify(sdata->dev,
30643064
rx->sta->addr,
30653065
&sta_opmode,
3066-
GFP_KERNEL);
3066+
GFP_ATOMIC);
30673067
goto handled;
30683068
}
30693069
case WLAN_HT_ACTION_NOTIFY_CHANWIDTH: {
@@ -3100,7 +3100,7 @@ ieee80211_rx_h_action(struct ieee80211_rx_data *rx)
31003100
cfg80211_sta_opmode_change_notify(sdata->dev,
31013101
rx->sta->addr,
31023102
&sta_opmode,
3103-
GFP_KERNEL);
3103+
GFP_ATOMIC);
31043104
goto handled;
31053105
}
31063106
default:

0 commit comments

Comments
 (0)