]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: add missing tracker information in qdisc_create()
authorEric Dumazet <edumazet@google.com>
Tue, 4 Jan 2022 17:04:39 +0000 (09:04 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Jan 2022 17:47:37 +0000 (09:47 -0800)
commit82a213cad743e90a2f12882eb93ed527270edd13
tree843204f82e3f4fa4f7bf4fc8619123b436253648
parent5fcd467be974d9b1b8417f2b059a6dcb8bf6522f
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: fd3836506c3a ("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>
net/sched/sch_api.c