net: wireless: bcm4329: Allocate skb with GFP_KERNEL flag if possible
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
9bc54c5ede
commit
a8bf8f2567
@ -247,8 +247,10 @@ void*
|
||||
osl_pktget(osl_t *osh, uint len)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
gfp_t flags;
|
||||
|
||||
if ((skb = dev_alloc_skb(len))) {
|
||||
flags = (in_atomic()) ? GFP_ATOMIC : GFP_KERNEL;
|
||||
if ((skb = __dev_alloc_skb(len, flags))) {
|
||||
skb_put(skb, len);
|
||||
skb->priority = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user