mac80211: fix GFP_KERNEL under tasklet context
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Tue, 23 Oct 2018 03:24:44 +0000 (11:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:16:22 +0000 (09:16 +0100)
commite08ab93325bb23aba2111fc4ad1e06f5adba7cb2
tree47c5ccd7b45116282422f75f1b5110cfdb55cc0e
parentdaac338a9e7bbdd89fae6f29314803192ffce921
mac80211: fix GFP_KERNEL under tasklet context

commit c752cac9db1b0c469db7ba9d17af4ba708984db5 upstream.

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: ff84e7bfe176 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/rx.c