diff options
author | Eric Dumazet <edumazet@google.com> | 2022-01-04 18:04:39 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-05 18:47:37 +0100 |
commit | 88248c357c2a8dbff899770dc02e2edf89d989aa (patch) | |
tree | 843204f82e3f4fa4f7bf4fc8619123b436253648 /net/sched/sch_api.c | |
parent | Merge branch 'dsa-notifier-cleanup' (diff) | |
download | linux-88248c357c2a8dbff899770dc02e2edf89d989aa.tar.xz linux-88248c357c2a8dbff899770dc02e2edf89d989aa.zip |
net/sched: add missing tracker information in qdisc_create()
qdisc_create() error path needs to use dev_put_track()
because qdisc_alloc() allocated the tracker.
Fixes: 606509f27f67 ("net/sched: add net device refcount tracker to struct Qdisc")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220104170439.3790052-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r-- | net/sched/sch_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index efcd0b5e9a32..c9c6f49f9c28 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1292,7 +1292,7 @@ err_out5: if (ops->destroy) ops->destroy(sch); err_out3: - dev_put(dev); + dev_put_track(dev, &sch->dev_tracker); qdisc_free(sch); err_out2: module_put(ops->owner); |