diff options
author | 2021-08-29 23:58:01 +0800 | |
---|---|---|
committer | 2021-08-30 20:29:03 -0700 | |
commit | c66070125837900163b81a03063ddd657a7e9bfb (patch) | |
tree | b94c6e7c9b4a2de8b4ed56af855670263ff13111 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (diff) | |
download | wireguard-linux-c66070125837900163b81a03063ddd657a7e9bfb.tar.xz wireguard-linux-c66070125837900163b81a03063ddd657a7e9bfb.zip |
net: sched: Fix qdisc_rate_table refcount leak when get tcf_block failed
The reference counting issue happens in one exception handling path of
cbq_change_class(). When failing to get tcf_block, the function forgets
to decrease the refcount of "rtab" increased by qdisc_put_rtab(),
causing a refcount leak.
Fix this issue by jumping to "failure" label when get tcf_block failed.
Fixes: 6529eaba33f0 ("net: sched: introduce tcf block infractructure")
Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Reviewed-by: Cong Wang <cong.wang@bytedance.com>
Link: https://lore.kernel.org/r/1630252681-71588-1-git-send-email-xiyuyang19@fudan.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions