]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - net/sctp/input.c
[SK_BUFF]: Convert skb->tail to sk_buff_data_t
[thirdparty/linux.git] / net / sctp / input.c
index 1ff47b18724a3e81f2ba9eb5b8aa95b0538e50dd..18b97eedc1fad86b1279d38245c3a92378fb3302 100644 (file)
@@ -612,7 +612,7 @@ int sctp_rcv_ootb(struct sk_buff *skb)
                        break;
 
                ch_end = ((__u8 *)ch) + WORD_ROUND(ntohs(ch->length));
-               if (ch_end > skb->tail)
+               if (ch_end > skb_tail_pointer(skb))
                        break;
 
                /* RFC 8.4, 2) If the OOTB packet contains an ABORT chunk, the
@@ -644,7 +644,7 @@ int sctp_rcv_ootb(struct sk_buff *skb)
                }
 
                ch = (sctp_chunkhdr_t *) ch_end;
-       } while (ch_end < skb->tail);
+       } while (ch_end < skb_tail_pointer(skb));
 
        return 0;