]> 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)
commit9ae3d6b73af4b045f2e659d0369c7aee772af8d7
tree60f7796211722aabd9ef73237e93d29c0177dcdb
parentc2c2c0c4d10a752d9601f6b28703f001a867de45
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