diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-04-05 06:41:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-08 12:09:17 -0400 |
commit | 84e2306e94549acd19e5d19734ddff3c2847e032 (patch) | |
tree | 7b08d0c07bab99c18ad63657984879d860cf614b /net/irda | |
parent | 22251c73ca63b5b1050724be9b54910c101a5f30 (diff) |
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>
Diffstat (limited to 'net/irda')
-rw-r--r-- | net/irda/af_irda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index e493b3397ae3..1c2dc90fbaaf 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, | |||
1120 | } | 1120 | } |
1121 | 1121 | ||
1122 | /* Allocate networking socket */ | 1122 | /* Allocate networking socket */ |
1123 | sk = sk_alloc(net, PF_IRDA, GFP_ATOMIC, &irda_proto); | 1123 | sk = sk_alloc(net, PF_IRDA, GFP_KERNEL, &irda_proto); |
1124 | if (sk == NULL) | 1124 | if (sk == NULL) |
1125 | return -ENOMEM; | 1125 | return -ENOMEM; |
1126 | 1126 | ||