Skip to content

Commit

Permalink
irda: use GFP_KERNEL in irda_connect_response()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
minipli authored and davem330 committed Apr 8, 2013
1 parent 84e2306 commit e1e3c80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/irda/af_irda.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,7 @@ static void irda_connect_response(struct irda_sock *self)

IRDA_DEBUG(2, "%s()\n", __func__);

skb = alloc_skb(TTP_MAX_HEADER + TTP_SAR_HEADER,
GFP_ATOMIC);
skb = alloc_skb(TTP_MAX_HEADER + TTP_SAR_HEADER, GFP_KERNEL);
if (skb == NULL) {
IRDA_DEBUG(0, "%s() Unable to allocate sk_buff!\n",
__func__);
Expand Down

0 comments on commit e1e3c80

Please sign in to comment.