]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/hamradio/6pack: Fix the size of a sk_buff used in 'sp_bump()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 26 Aug 2019 19:02:09 +0000 (21:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Sep 2019 13:46:28 +0000 (15:46 +0200)
commitb82573fdbef809803d06295f318f7ad1a2c5ceb9
tree9333d1b98f4f54ab424f6807cc41506669e989c0
parent0c04eb72d332ef6e12c3ecb0c638359e65ad29d9
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>
drivers/net/hamradio/6pack.c