2024-03-13 13:38:36

by Michael Ellerman

[permalink] [raw]
Subject: Re: [PATCH] powerpc/pseries: Fix potential memleak in papr_get_attr()

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