diff options
| author | Michael Ellerman <[email protected]> | 2024-02-29 22:51:49 +1100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2024-03-03 22:20:29 +1100 |
| commit | f2d5bccaca3e8c09c9b9c8485375f7bdbb2631d2 (patch) | |
| tree | 75a1ba6879f7fc58d957ac30ee07db88190d402e /tools/perf/scripts/python | |
| parent | 69b0194ccec033c208b071e019032c1919c2822d (diff) | |
powerpc/boot: Only free if realloc() succeeds
simple_realloc() frees the original buffer (ptr) even if the
reallocation failed.
Fix it to behave like standard realloc() and only free the original
buffer if the reallocation succeeded.
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions