Search Linux Wireless

Re: GFP flags for cfg80211_rx_mgmt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2014-07-13 at 08:02 -0700, Vladimir Kondratiev wrote:
> Hi,
> 
> In the cfg80211_rx_mgmt(), there is parameter 'gfp_t gfp' that is
> passed to the nl80211_send_mgmt() and then to alloc_skb().
> In fact, nl80211_send_mgmt() called under spinlock, so
> one can't use GFP_KERNEL. However, documentation for
> cfg80211_rx_mgmt does not restrict GFP flags.
> 
> I suggest to document this, and enforce in some way (WARN_ONCE?),
> or just remove this parameter - everywhere in the kernel
> GFP_ATOMIC is used.

I say just remove it, want to send a patch?

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux