]> git.itanic.dy.fi Git - linux-stable/commit
net: add __must_check to skb_put_padto()
authorEric Dumazet <edumazet@google.com>
Wed, 9 Sep 2020 08:27:40 +0000 (01:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Sep 2020 16:01:31 +0000 (18:01 +0200)
commitf424617e01dce6a220892fce26afc0abef952e1b
tree3ca0f2c7dfea2834bde2b444aed0a7331c9d6382
parent771443a2ffe189f5f51653d21e949b436c9da09a
net: add __must_check to skb_put_padto()

[ Upstream commit 4a009cb04aeca0de60b73f37b102573354214b52 ]

skb_put_padto() and __skb_put_padto() callers
must check return values or risk use-after-free.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/skbuff.h