summaryrefslogtreecommitdiffstats
path: root/net/irda
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2013-04-05 13:02:07 +0200
committerDavid S. Miller <davem@davemloft.net>2013-04-08 18:09:18 +0200
commitc17277f7d7c502afe1062587913d47881ba0f116 (patch)
treef46081c64afd8c0ecbb25b995e62712eb8b33773 /net/irda
parentirda: use GFP_KERNEL in irda_connect_response() (diff)
downloadlinux-c17277f7d7c502afe1062587913d47881ba0f116.tar.xz
linux-c17277f7d7c502afe1062587913d47881ba0f116.zip
TTY: ircomm, use GFP_KERNEL in ircomm_open()
Hi Greg, I'm unsure if you or Dave should take that one as it's for one a TTY patch but also living under net/. So I'm uncertain and let you decide! Thanks, Mathias -- >8 -- Subject: [PATCH] TTY: ircomm, use GFP_KERNEL in ircomm_open() We're clearly running in non-atomic context as our only call site is able to call wait_event_interruptible(). So we're safe to use GFP_KERNEL here instead of GFP_ATOMIC. Signed-off-by: Mathias Krause <minipli@googlemail.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda')
-rw-r--r--net/irda/ircomm/ircomm_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/irda/ircomm/ircomm_core.c b/net/irda/ircomm/ircomm_core.c
index 52079f19bbbe..b797daac063c 100644
--- a/net/irda/ircomm/ircomm_core.c
+++ b/net/irda/ircomm/ircomm_core.c
@@ -117,7 +117,7 @@ struct ircomm_cb *ircomm_open(notify_t *notify, __u8 service_type, int line)
IRDA_ASSERT(ircomm != NULL, return NULL;);
- self = kzalloc(sizeof(struct ircomm_cb), GFP_ATOMIC);
+ self = kzalloc(sizeof(struct ircomm_cb), GFP_KERNEL);
if (self == NULL)
return NULL;