[PATCH] powerpc/boot: Only free if realloc() succeeds
Michael Ellerman
patch-notifications at ellerman.id.au
Thu Mar 14 00:19:43 AEDT 2024
On Thu, 29 Feb 2024 22:51:49 +1100, Michael Ellerman wrote:
> 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.
>
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/boot: Only free if realloc() succeeds
https://git.kernel.org/powerpc/c/f2d5bccaca3e8c09c9b9c8485375f7bdbb2631d2
cheers
More information about the Linuxppc-dev
mailing list