From: Mathias Krause Date: Fri, 5 Apr 2013 10:41:27 +0000 (+0000) Subject: irda: use GFP_KERNEL in irda_create() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84e2306e94549acd19e5d19734ddff3c2847e032;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index e493b3397ae..1c2dc90fbaa 100644 --- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c @@ -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;