commit | b82573fdbef809803d06295f318f7ad1a2c5ceb9 | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Mon Aug 26 21:02:09 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sat Sep 07 15:46:28 2019 +0200 |
tree | 9333d1b98f4f54ab424f6807cc41506669e989c0 | |
parent | 0c04eb72d332ef6e12c3ecb0c638359e65ad29d9 [diff] |
net/hamradio/6pack: Fix the size of a sk_buff used in 'sp_bump()' We 'allocate' 'count' bytes here. In fact, 'dev_alloc_skb' already add some extra space for padding, so a bit more is allocated. However, we use 1 byte for the KISS command, then copy 'count' bytes, so count+1 bytes. Explicitly allocate and use 1 more byte to be safe. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net>