aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorCharlie Jenkins <[email protected]>2024-01-04 11:42:48 -0800
committerPalmer Dabbelt <[email protected]>2024-01-10 06:48:12 -0800
commit4b38b36bfbd83b23e20c172d08dd85773791e3bd (patch)
treeb4320bf13eac15243f4e0a99d417590e9e83d9d2 /tools/perf/scripts/python/Perf-Trace-Util
parent78996eee79ebdfe8b6f0e54cb6dcc792d5129291 (diff)
riscv: Correctly free relocation hashtable on error
When there is not enough allocatable memory for the relocation hashtable, module loading should exit gracefully. Previously, this was attempted to be accomplished by checking if an unsigned number is less than zero which does not work. Instead have the caller check if the hashtable was correctly allocated and add a comment explaining that hashtable_bits that is 0 is valid. Signed-off-by: Charlie Jenkins <[email protected]> Fixes: d8792a5734b0 ("riscv: Safely remove entries from relocation list") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Reported-by: kernel test robot <[email protected]> Reported-by: Julia Lawall <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions