Merge tag 'io_uring-5.14-2021-08-07' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / net / netfilter / nf_conntrack_seqadj.c
index dc21a43..3066449 100644 (file)
@@ -126,7 +126,7 @@ static unsigned int nf_ct_sack_adjust(struct sk_buff *skb,
        optoff = protoff + sizeof(struct tcphdr);
        optend = protoff + tcph->doff * 4;
 
-       if (!skb_make_writable(skb, optend))
+       if (skb_ensure_writable(skb, optend))
                return 0;
 
        tcph = (void *)skb->data + protoff;
@@ -176,7 +176,7 @@ int nf_ct_seq_adjust(struct sk_buff *skb,
        this_way  = &seqadj->seq[dir];
        other_way = &seqadj->seq[!dir];
 
-       if (!skb_make_writable(skb, protoff + sizeof(*tcph)))
+       if (skb_ensure_writable(skb, protoff + sizeof(*tcph)))
                return 0;
 
        tcph = (void *)skb->data + protoff;