]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
treewide: replace skb_make_writable
authorJan Engelhardt <jengelh@inai.de>
Fri, 6 Sep 2019 08:10:08 +0000 (10:10 +0200)
committerJan Engelhardt <jengelh@inai.de>
Fri, 6 Sep 2019 08:34:36 +0000 (10:34 +0200)
skb_make_writable was removed in v5.3-rc1~140^2~370^2~1 .
Replace it with skb_ensure_writable that was introduced in
v3.19-rc1~118^2~153^2~2 .

extensions/xt_PROTO.c

index 2dbd6c4422108763d82aca7cc5cac169eb3c6229..3488ee6e2806cf67571825781e398b64393f9d3b 100644 (file)
@@ -26,7 +26,7 @@ proto_tg(struct sk_buff *skb, const struct xt_action_param *par)
        const struct xt_PROTO_info *info = par->targinfo;
        int new_proto;
 
-       if (!skb_make_writable(skb, skb->len))
+       if (skb_ensure_writable(skb, skb->len))
                return NF_DROP;
 
        iph = ip_hdr(skb);
@@ -51,7 +51,7 @@ proto_tg6(struct sk_buff *skb, const struct xt_action_param *par)
        unsigned int hdr_offset;
        __be16 *fp;
 
-       if (!skb_make_writable(skb, skb->len))
+       if (skb_ensure_writable(skb, skb->len))
                return NF_DROP;
 
        ip6h = ipv6_hdr(skb);