diff options
-rw-r--r-- | drivers/net/hamradio/6pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c index 331c16d30d5d..23281aeeb222 100644 --- a/drivers/net/hamradio/6pack.c +++ b/drivers/net/hamradio/6pack.c | |||
@@ -344,10 +344,10 @@ static void sp_bump(struct sixpack *sp, char cmd) | |||
344 | 344 | ||
345 | sp->dev->stats.rx_bytes += count; | 345 | sp->dev->stats.rx_bytes += count; |
346 | 346 | ||
347 | if ((skb = dev_alloc_skb(count)) == NULL) | 347 | if ((skb = dev_alloc_skb(count + 1)) == NULL) |
348 | goto out_mem; | 348 | goto out_mem; |
349 | 349 | ||
350 | ptr = skb_put(skb, count); | 350 | ptr = skb_put(skb, count + 1); |
351 | *ptr++ = cmd; /* KISS command */ | 351 | *ptr++ = cmd; /* KISS command */ |
352 | 352 | ||
353 | memcpy(ptr, sp->cooked_buf + 1, count); | 353 | memcpy(ptr, sp->cooked_buf + 1, count); |