]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix GFP_KERNEL under tasklet context
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Tue, 23 Oct 2018 03:24:44 +0000 (11:24 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 07:56:12 +0000 (08:56 +0100)
commita36f8951dca5c36e0d72fbb7809d811e18c82f77
treeb0bb03fd78cc8fcde0aeb0971afbaffde4dbbc0c
parent781605dd91a904d88e479fb6db9f41ce5e941ef9
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: stable@vger.kernel.org
Fixes: 1e94d5941270 ("mac80211: Add support to notify ht/vht opmode modification.")
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
ACKed-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c