aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/exthdrs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/exthdrs.c')
-rw-r--r--net/ipv6/exthdrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index a6a275db88cd..275d2e812a44 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -51,7 +51,7 @@
51int ipv6_find_tlv(struct sk_buff *skb, int offset, int type) 51int ipv6_find_tlv(struct sk_buff *skb, int offset, int type)
52{ 52{
53 const unsigned char *nh = skb_network_header(skb); 53 const unsigned char *nh = skb_network_header(skb);
54 int packet_len = skb->tail - nh; 54 int packet_len = skb->tail - skb->network_header;
55 struct ipv6_opt_hdr *hdr; 55 struct ipv6_opt_hdr *hdr;
56 int len; 56 int len;
57 57