diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2005-09-08 12:57:43 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-08 12:57:43 -0700 |
commit | 42ca89c18b75e1c4c3b02aa5589ad3aa916909a8 (patch) | |
tree | a3052c4ffdfa8451a182c49837a92054f5688672 /net/ipv6/udp.c | |
parent | e50ef933e649a2b43aa10c8a60c491543b8b4c02 (diff) | |
download | op-kernel-dev-42ca89c18b75e1c4c3b02aa5589ad3aa916909a8.zip op-kernel-dev-42ca89c18b75e1c4c3b02aa5589ad3aa916909a8.tar.gz |
[IPV6]: Need to use pskb_trim_rcsum().
Fix pskb_trim usage in ipv6. Only the udp one is really
a bug, other places are just doing equivalent code.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 390d750..7cbcaa3 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -483,7 +483,7 @@ static int udpv6_rcv(struct sk_buff **pskb, unsigned int *nhoffp) } if (ulen < skb->len) { - if (__pskb_trim(skb, ulen)) + if (pskb_trim_rcsum(skb, ulen)) goto discard; saddr = &skb->nh.ipv6h->saddr; daddr = &skb->nh.ipv6h->daddr; |