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

2023-12-21 Thread Michael Ellerman
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

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

2023-12-17 Thread Andrew Donnellan
On Fri, 2023-12-08 at 16:59 +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. > > Fixes: bfd2f0d49aef ("powerpc/powernv: Get rid of old scom_controller >

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

2023-12-08 Thread Kunwu Chan
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. Fixes: bfd2f0d49aef ("powerpc/powernv: Get rid of old scom_controller abstraction") Cc: Kunwu Chan Signed-off-by: Kunwu Chan ---