From: Vladimir Kondratiev Date: Mon, 11 Aug 2014 10:29:57 +0000 (-0700) Subject: cfg80211: remove @gfp parameter from cfg80211_rx_mgmt() X-Git-Tag: fixes-against-v3.18-rc2~81^2~133^2~4^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=970fdfa89babb5a6f1a3d345e8cb54d92c1e3a8f;p=pandora-kernel.git cfg80211: remove @gfp parameter from cfg80211_rx_mgmt() In the cfg80211_rx_mgmt(), parameter @gfp was used for the memory allocation. But, memory get allocated under spin_lock_bh(), this implies atomic context. So, one can't use GFP_KERNEL, only variants with no __GFP_WAIT. Actually, in all occurrences GFP_ATOMIC is used (wil6210 use GFP_KERNEL by mistake), and it should be this way or warning triggered in the memory allocation code. Remove @gfp parameter as no actual choice exist, and use hard coded GFP_ATOMIC for memory allocation. Signed-off-by: Vladimir Kondratiev Signed-off-by: Johannes Berg --- Reading git-diff-tree failed