diff options
| author | Xiyu Yang <[email protected]> | 2021-08-29 15:58:01 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-08-31 03:29:03 +0000 |
| commit | c66070125837900163b81a03063ddd657a7e9bfb (patch) | |
| tree | b94c6e7c9b4a2de8b4ed56af855670263ff13111 /net/unix/af_unix.c | |
| parent | Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (diff) | |
| download | kernel-c66070125837900163b81a03063ddd657a7e9bfb.tar.gz kernel-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 <[email protected]>
Reviewed-by: Cong Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
