irda: use GFP_KERNEL in irda_create()
irda_create() is called from user context only, therefore has no need for GFP_ATOMIC. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
22251c73ca
commit
84e2306e94
@ -1120,7 +1120,7 @@ static int irda_create(struct net *net, struct socket *sock, int protocol,
|
||||
}
|
||||
|
||||
/* Allocate networking socket */
|
||||
sk = sk_alloc(net, PF_IRDA, GFP_ATOMIC, &irda_proto);
|
||||
sk = sk_alloc(net, PF_IRDA, GFP_KERNEL, &irda_proto);
|
||||
if (sk == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user