projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22251c7
)
irda: use GFP_KERNEL in irda_create()
author
Mathias Krause
<minipli@googlemail.com>
Fri, 5 Apr 2013 10:41:27 +0000
(10:41 +0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/irda/af_irda.c
b/net/irda/af_irda.c
index
e493b33
..
1c2dc90
100644
(file)
--- 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;