mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mac80211: fix calling sleeping function in atomic context
sta_info_alloc can be called from atomic paths (such as RX path)
so we need to call pcpu_alloc with the correct gfp.
Fixes: c9c5962b56 ("mac80211: enable collecting station statistics per-CPU")
Signed-off-by: Sara Sharon <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
d78d9ee9d4
commit
95f3ce6a77
1 changed files with 1 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
|
|||
|
||||
if (ieee80211_hw_check(hw, USES_RSS)) {
|
||||
sta->pcpu_rx_stats =
|
||||
alloc_percpu(struct ieee80211_sta_rx_stats);
|
||||
alloc_percpu_gfp(struct ieee80211_sta_rx_stats, gfp);
|
||||
if (!sta->pcpu_rx_stats)
|
||||
goto free;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue