Re: [PATCH v2] x86/xen: Add some null pointer checking to smp.c

2024-01-22 Thread Kunwu Chan
On 2024/1/22 16:30, Dan Carpenter wrote: On Fri, Jan 19, 2024 at 05:22:25PM +0800, Kunwu Chan wrote: On 2024/1/17 18:40, Markus Elfring wrote: kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the

Re: [PATCH v2] x86/xen: Add some null pointer checking to smp.c

2024-01-22 Thread Dan Carpenter
On Fri, Jan 19, 2024 at 05:22:25PM +0800, Kunwu Chan wrote: > On 2024/1/17 18:40, Markus Elfring wrote: > > > kasprintf() returns a pointer to dynamically allocated memory > > > which can be NULL upon failure. Ensure the allocation was successful > > > by checking the pointer validity. > > … > > >

Re: [PATCH v2] x86/xen: Add some null pointer checking to smp.c

2024-01-20 Thread Kunwu Chan
On 2024/1/17 18:40, Markus Elfring wrote: kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. … +++ b/arch/x86/xen/smp.c @@ -61,10 +61,14 @@ void xen_smp_intr_free(unsigned int cpu)

[PATCH v2] x86/xen: Add some null pointer checking to smp.c

2024-01-17 Thread Kunwu Chan
kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. Signed-off-by: Kunwu Chan Reported-by: kernel test robot Closes:

Re: [PATCH v2] x86/xen: Add some null pointer checking to smp.c

2024-01-17 Thread Markus Elfring
> kasprintf() returns a pointer to dynamically allocated memory > which can be NULL upon failure. Ensure the allocation was successful > by checking the pointer validity. … > +++ b/arch/x86/xen/smp.c > @@ -61,10 +61,14 @@ void xen_smp_intr_free(unsigned int cpu) > > int xen_smp_intr_init(unsigned