From 84e2306e94549acd19e5d19734ddff3c2847e032 Mon Sep 17 00:00:00 2001 From: Mathias Krause Date: Fri, 5 Apr 2013 10:41:27 +0000 Subject: [PATCH] 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 --- net/irda/af_irda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1