aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/af_irda.c
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2013-04-05 06:41:28 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-08 12:09:18 -0400
commite1e3c806dab8bdf5d748653edc67b2d97804a666 (patch)
tree5d8381ce9a3b86b805ebaa9cf004765b523dfb7a /net/irda/af_irda.c
parent84e2306e94549acd19e5d19734ddff3c2847e032 (diff)
irda: use GFP_KERNEL in irda_connect_response()
The only call site of irda_connect_response() is irda_accept() -- a function called from user context only. Therefore it 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/af_irda.c')
-rw-r--r--net/irda/af_irda.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c
index 1c2dc90fbaaf..0578d4fa00a9 100644
--- a/net/irda/af_irda.c
+++ b/net/irda/af_irda.c
@@ -305,8 +305,7 @@ static void irda_connect_response(struct irda_sock *self)
305 305
306 IRDA_DEBUG(2, "%s()\n", __func__); 306 IRDA_DEBUG(2, "%s()\n", __func__);
307 307
308 skb = alloc_skb(TTP_MAX_HEADER + TTP_SAR_HEADER, 308 skb = alloc_skb(TTP_MAX_HEADER + TTP_SAR_HEADER, GFP_KERNEL);
309 GFP_ATOMIC);
310 if (skb == NULL) { 309 if (skb == NULL) {
311 IRDA_DEBUG(0, "%s() Unable to allocate sk_buff!\n", 310 IRDA_DEBUG(0, "%s() Unable to allocate sk_buff!\n",
312 __func__); 311 __func__);