[PATCH] powerpc/pseries: Fix potential memleak in papr_get_attr()

Michael Ellerman patch-notifications at ellerman.id.au
Thu Mar 14 00:19:43 AEDT 2024


On Thu, 08 Dec 2022 21:34:49 +0800, Qiheng Lin wrote:
> `buf` is allocated in papr_get_attr(), and krealloc() of `buf`
> could fail. We need to free the original `buf` in the case of failure.
> 
> 

Applied to powerpc/next.

[1/1] powerpc/pseries: Fix potential memleak in papr_get_attr()
      https://git.kernel.org/powerpc/c/cda9c0d556283e2d4adaa9960b2dc19b16156bae

cheers


More information about the Linuxppc-dev mailing list