summaryrefslogtreecommitdiff
path: root/net/xfrm
diff options
context:
space:
mode:
authorRichard Gobert <richardbgobert@gmail.com>2022-09-28 14:55:31 +0200
committerDavid S. Miller <davem@davemloft.net>2022-09-30 12:31:46 +0100
commitd427c8999b071af2003203b42a007c4a80156c18 (patch)
tree60f7796211722aabd9ef73237e93d29c0177dcdb /net/xfrm
parent96e0718165a0d36ed4cba365c542818f20bf7640 (diff)
downloadlinux-rpi-d427c8999b071af2003203b42a007c4a80156c18.tar.gz
linux-rpi-d427c8999b071af2003203b42a007c4a80156c18.tar.bz2
linux-rpi-d427c8999b071af2003203b42a007c4a80156c18.zip
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>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/espintcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/espintcp.c b/net/xfrm/espintcp.c
index 974eb97b77d2..29a540dcb5a7 100644
--- a/net/xfrm/espintcp.c
+++ b/net/xfrm/espintcp.c
@@ -91,7 +91,7 @@ static void espintcp_rcv(struct strparser *strp, struct sk_buff *skb)
}
/* remove header, leave non-ESP marker/SPI */
- if (!__pskb_pull(skb, rxm->offset + 2)) {
+ if (!pskb_pull(skb, rxm->offset + 2)) {
XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR);
kfree_skb(skb);
return;