Merge tag 'zynqmp-soc-fixes-for-v5.10-rc6' of https://github.com/Xilinx/linux-xlnx...
[linux-2.6-microblaze.git] / net / ipv6 / seg6_local.c
index 5249342..eba2327 100644 (file)
@@ -87,7 +87,7 @@ static struct ipv6_sr_hdr *get_srh(struct sk_buff *skb)
         */
        srh = (struct ipv6_sr_hdr *)(skb->data + srhoff);
 
-       if (!seg6_validate_srh(srh, len))
+       if (!seg6_validate_srh(srh, len, true))
                return NULL;
 
        return srh;
@@ -495,7 +495,7 @@ bool seg6_bpf_has_valid_srh(struct sk_buff *skb)
                        return false;
 
                srh->hdrlen = (u8)(srh_state->hdrlen >> 3);
-               if (!seg6_validate_srh(srh, (srh->hdrlen + 1) << 3))
+               if (!seg6_validate_srh(srh, (srh->hdrlen + 1) << 3, true))
                        return false;
 
                srh_state->valid = true;
@@ -670,7 +670,7 @@ static int parse_nla_srh(struct nlattr **attrs, struct seg6_local_lwt *slwt)
        if (len < sizeof(*srh) + sizeof(struct in6_addr))
                return -EINVAL;
 
-       if (!seg6_validate_srh(srh, len))
+       if (!seg6_validate_srh(srh, len, false))
                return -EINVAL;
 
        slwt->srh = kmemdup(srh, len, GFP_KERNEL);