]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/sched/cls_fw.c
net_sched: initialize net pointer inside tcf_exts_init()
[mirror_ubuntu-bionic-kernel.git] / net / sched / cls_fw.c
index 964f2e3ed64d443f13de032baf056960e2f378e3..e2d476cc24f75821abd6869841dcdec8d7180b91 100644 (file)
@@ -280,7 +280,8 @@ static int fw_change(struct net *net, struct sk_buff *in_skb,
 #endif /* CONFIG_NET_CLS_IND */
                fnew->tp = f->tp;
 
-               err = tcf_exts_init(&fnew->exts, TCA_FW_ACT, TCA_FW_POLICE);
+               err = tcf_exts_init(&fnew->exts, net, TCA_FW_ACT,
+                                   TCA_FW_POLICE);
                if (err < 0) {
                        kfree(fnew);
                        return err;
@@ -329,7 +330,7 @@ static int fw_change(struct net *net, struct sk_buff *in_skb,
        if (f == NULL)
                return -ENOBUFS;
 
-       err = tcf_exts_init(&f->exts, TCA_FW_ACT, TCA_FW_POLICE);
+       err = tcf_exts_init(&f->exts, net, TCA_FW_ACT, TCA_FW_POLICE);
        if (err < 0)
                goto errout;
        f->id = handle;