diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 2ae7d3cb8df4..0d378141c95a 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2855,8 +2855,7 @@ static int selinux_parse_skb_ipv6(struct sk_buff *skb, struct avc_audit_data *ad | |||
2855 | 2855 | ||
2856 | nexthdr = ip6->nexthdr; | 2856 | nexthdr = ip6->nexthdr; |
2857 | offset += sizeof(_ipv6h); | 2857 | offset += sizeof(_ipv6h); |
2858 | offset = ipv6_skip_exthdr(skb, offset, &nexthdr, | 2858 | offset = ipv6_skip_exthdr(skb, offset, &nexthdr); |
2859 | skb->tail - skb->head - offset); | ||
2860 | if (offset < 0) | 2859 | if (offset < 0) |
2861 | goto out; | 2860 | goto out; |
2862 | 2861 | ||