summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2024-02-29 14:51:49 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2024-03-03 14:20:29 +0300
commitf2d5bccaca3e8c09c9b9c8485375f7bdbb2631d2 (patch)
tree75a1ba6879f7fc58d957ac30ee07db88190d402e /lib/mpi/mpi-sub-ui.c
parent69b0194ccec033c208b071e019032c1919c2822d (diff)
downloadlinux-f2d5bccaca3e8c09c9b9c8485375f7bdbb2631d2.tar.xz
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 <mpe@ellerman.id.au> Link: https://msgid.link/20240229115149.749264-1-mpe@ellerman.id.au
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions