]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
irda: use GFP_KERNEL in irda_create()
authorMathias Krause <minipli@googlemail.com>
Fri, 5 Apr 2013 10:41:27 +0000 (10:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2013 16:09:17 +0000 (12:09 -0400)
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>
net/irda/af_irda.c

index e493b3397ae3337b4582d811febb932e0711a09e..1c2dc90fbaafaa276447e8aad183e0b49d287fdc 100644 (file)
@@ -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;