mac80211: fix calling sleeping function in atomic context
authorSara Sharon <sara.sharon@intel.com>
Mon, 19 Feb 2018 12:48:37 +0000 (14:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:50:28 +0000 (07:50 +0200)
commit31155ee44dd94f379532a446b078175289e8c3ff
treef54960e8c91c08782785bc237e24a5b9b588b41b
parentae58b7545f76710ab9a776c7cafbae5ebfc0ceb3
mac80211: fix calling sleeping function in atomic context

[ Upstream commit 95f3ce6a77893ac828ba841df44421620de4314b ]

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: c9c5962b56c1 ("mac80211: enable collecting station statistics per-CPU")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c