[PATCH] powerpc/powernv: Add a null pointer check to scom_debug_init_one

Michael Ellerman patch-notifications at ellerman.id.au
Thu Dec 21 21:38:20 AEDT 2023


On Fri, 08 Dec 2023 16:59:37 +0800, Kunwu Chan wrote:
> kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure.
> Add a null pointer check, and release 'ent' to avoid memory leaks.
> 
> 

Applied to powerpc/next.

[1/1] powerpc/powernv: Add a null pointer check to scom_debug_init_one
      https://git.kernel.org/powerpc/c/9a260f2dd827bbc82cc60eb4f4d8c22707d80742

cheers


More information about the Linuxppc-dev mailing list