]> git.baikalelectronics.ru Git - kernel.git/commit
net-next: skbuff: refactor pskb_pull
authorRichard Gobert <richardbgobert@gmail.com>
Wed, 28 Sep 2022 12:55:31 +0000 (14:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2022 11:31:46 +0000 (12:31 +0100)
commitde5d87d60b27d50bc1b5be1bf5cf4f0c9b8de32a
tree60f7796211722aabd9ef73237e93d29c0177dcdb
parentd2767f145d4b270bfa5e615bf887f4e5d4e66bff
net-next: skbuff: refactor pskb_pull

pskb_may_pull already contains all of the checks performed by
pskb_pull.
Use pskb_may_pull for validation in pskb_pull, eliminating the
duplication and making __pskb_pull obsolete.
Replace __pskb_pull with pskb_pull where applicable.

Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/ipv6/ip6_offload.c
net/mac80211/rx.c
net/xfrm/espintcp.c