aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phylink.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2019-08-26 21:02:09 +0200
committerDavid S. Miller <davem@davemloft.net>2019-09-07 15:46:28 +0200
commitb82573fdbef809803d06295f318f7ad1a2c5ceb9 (patch)
tree9333d1b98f4f54ab424f6807cc41506669e989c0 /drivers/net/phy/phylink.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf (diff)
downloadlinux-dev-b82573fdbef809803d06295f318f7ad1a2c5ceb9.tar.xz
linux-dev-b82573fdbef809803d06295f318f7ad1a2c5ceb9.zip
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>
Diffstat (limited to 'drivers/net/phy/phylink.c')
0 files changed, 0 insertions, 0 deletions