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>
Thu, 1 Oct 2020 11:12:25 +0000 (13:12 +0200)
commit81a38306341c6d0518576fa686ef4e60b7e6065b
treef7880fd338bd82271d64136b6f07089643963258
parent65325a90d601c630953f866fd3d23d8759276f32
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