diff options
Diffstat (limited to 'net/irda/af_irda.c')
-rw-r--r-- | net/irda/af_irda.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index 7b7cd5bd2a0..7e1aea89ef0 100644 --- a/net/irda/af_irda.c +++ b/net/irda/af_irda.c | |||
@@ -309,7 +309,8 @@ static void irda_connect_response(struct irda_sock *self) | |||
309 | 309 | ||
310 | IRDA_ASSERT(self != NULL, return;); | 310 | IRDA_ASSERT(self != NULL, return;); |
311 | 311 | ||
312 | skb = alloc_skb(64, GFP_ATOMIC); | 312 | skb = alloc_skb(TTP_MAX_HEADER + TTP_SAR_HEADER, |
313 | GFP_ATOMIC); | ||
313 | if (skb == NULL) { | 314 | if (skb == NULL) { |
314 | IRDA_DEBUG(0, "%s() Unable to allocate sk_buff!\n", | 315 | IRDA_DEBUG(0, "%s() Unable to allocate sk_buff!\n", |
315 | __FUNCTION__); | 316 | __FUNCTION__); |