OSDN Git Service

net: add __must_check to skb_put_padto()
authorEric Dumazet <edumazet@google.com>
Wed, 9 Sep 2020 08:27:40 +0000 (01:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 18:04:39 +0000 (11:04 -0700)
commit4a009cb04aeca0de60b73f37b102573354214b52
treeba215a0109a91902809faed11a077eeb1ba5a7d7
parent3ca1a42a52ca4b4f02061683851692ad65fefac8
net: add __must_check to skb_put_padto()

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>
include/linux/skbuff.h