diff options
| author | Paul Burton <[email protected]> | 2017-03-30 11:37:44 -0700 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2017-06-28 12:22:38 +0200 |
| commit | 351b0940d473146923711bc943fc881354a4c1f3 (patch) | |
| tree | 22fb67dcf5e2202a362c200e1e56ac77c58c9ee7 /tools/perf/scripts/python | |
| parent | 59baa24d8710add3689124fb2a232bac2decae9a (diff) | |
MIPS: module: Ensure we always clean up r_mips_hi16_list
If we hit an error whilst processing a reloc then we would return early
from apply_relocate & potentially not free entries in r_mips_hi16_list,
thereby leaking memory. Fix this by ensuring that we always run the code
to free r_mipps_hi16_list when errors occur.
Signed-off-by: Paul Burton <[email protected]>
Fixes: 861667dc82f5 ("MIPS: Fix race condition in module relocation code.")
Fixes: 04211a574641 ("MIPS: Bail on unsupported module relocs")
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/15831/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions