]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/sched/cls_rsvp.h
net_sched: initialize net pointer inside tcf_exts_init()
[mirror_ubuntu-bionic-kernel.git] / net / sched / cls_rsvp.h
index 4e1807b41028598f864d92dd045fce54cfd45036..1b6b39a44e81cce99a4bf1d778c63e5dbbf21064 100644 (file)
@@ -498,7 +498,7 @@ static int rsvp_change(struct net *net, struct sk_buff *in_skb,
        if (err < 0)
                return err;
 
-       err = tcf_exts_init(&e, TCA_RSVP_ACT, TCA_RSVP_POLICE);
+       err = tcf_exts_init(&e, net, TCA_RSVP_ACT, TCA_RSVP_POLICE);
        if (err < 0)
                return err;
        err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, ovr);
@@ -519,7 +519,8 @@ static int rsvp_change(struct net *net, struct sk_buff *in_skb,
                        goto errout2;
                }
 
-               err = tcf_exts_init(&n->exts, TCA_RSVP_ACT, TCA_RSVP_POLICE);
+               err = tcf_exts_init(&n->exts, net, TCA_RSVP_ACT,
+                                   TCA_RSVP_POLICE);
                if (err < 0) {
                        kfree(n);
                        goto errout2;
@@ -547,7 +548,7 @@ static int rsvp_change(struct net *net, struct sk_buff *in_skb,
        if (f == NULL)
                goto errout2;
 
-       err = tcf_exts_init(&f->exts, TCA_RSVP_ACT, TCA_RSVP_POLICE);
+       err = tcf_exts_init(&f->exts, net, TCA_RSVP_ACT, TCA_RSVP_POLICE);
        if (err < 0)
                goto errout;
        h2 = 16;