diff options
author | 2024-11-28 09:16:34 +0100 | |
---|---|---|
committer | 2025-01-08 10:22:52 -0800 | |
commit | 03f0b548537f758830bdb2dc3f2aba713069cef2 (patch) | |
tree | b363f2215e310d3379456ee149349670e76c2eda /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | riscv: selftests: Fix warnings pointer masking test (diff) | |
download | wireguard-linux-03f0b548537f758830bdb2dc3f2aba713069cef2.tar.xz wireguard-linux-03f0b548537f758830bdb2dc3f2aba713069cef2.zip |
riscv: module: remove relocation_head rel_entry member allocation
relocation_head's list_head member, rel_entry, doesn't need to be
allocated, its storage can just be part of the allocated relocation_head.
Remove the pointer which allows to get rid of the allocation as well as
an existing memory leak found by Kai Zhang using kmemleak.
Fixes: 8fd6c5142395 ("riscv: Add remaining module relocations")
Reported-by: Kai Zhang <zhangkai@iscas.ac.cn>
Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Tested-by: Charlie Jenkins <charlie@rivosinc.com>
Link: https://lore.kernel.org/r/20241128081636.3620468-1-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions