Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mathias Krause and committed by
David S. Miller
e1e3c806 84e2306e

+1 -2
+1 -2
net/irda/af_irda.c
··· 305 305 306 306 IRDA_DEBUG(2, "%s()\n", __func__); 307 307 308 - skb = alloc_skb(TTP_MAX_HEADER + TTP_SAR_HEADER, 309 - GFP_ATOMIC); 308 + skb = alloc_skb(TTP_MAX_HEADER + TTP_SAR_HEADER, GFP_KERNEL); 310 309 if (skb == NULL) { 311 310 IRDA_DEBUG(0, "%s() Unable to allocate sk_buff!\n", 312 311 __func__);