diff options
| author | Tetsuo Handa <[email protected]> | 2022-09-11 00:07:11 +0900 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-09-10 16:04:07 -0700 |
| commit | cf7de6a53600ea554a8358e44fbcf47b449235f9 (patch) | |
| tree | 3347d542988780e42f64d4a8ea4ec9a3c2e39e20 /tools/perf/scripts/python | |
| parent | 2fae67716bb99a956a4c4a47c0e2ece52a2a15ca (diff) | |
bpf: add missing percpu_counter_destroy() in htab_map_alloc()
syzbot is reporting ODEBUG bug in htab_map_alloc() [1], for
commit 86fe28f7692d96d2 ("bpf: Optimize element count in non-preallocated
hash map.") added percpu_counter_init() to htab_map_alloc() but forgot to
add percpu_counter_destroy() to the error path.
Link: https://syzkaller.appspot.com/bug?extid=5d1da78b375c3b5e6c2b [1]
Reported-by: syzbot <[email protected]>
Signed-off-by: Tetsuo Handa <[email protected]>
Fixes: 86fe28f7692d96d2 ("bpf: Optimize element count in non-preallocated hash map.")
Reviewed-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions