Kunwu Chan 3693bb4465 x86/xen: Add some null pointer checking to smp.c
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 <chentao@kylinos.cn>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401161119.iof6BQsf-lkp@intel.com/
Suggested-by: Markus Elfring <Markus.Elfring@web.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20240119094948.275390-1-chentao@kylinos.cn
Signed-off-by: Juergen Gross <jgross@suse.com>
2024-02-12 20:14:52 +01:00
..
2023-10-10 14:38:19 +02:00
2023-09-19 07:04:49 +02:00
2024-01-03 11:46:22 +01:00
2023-09-19 07:04:49 +02:00
2022-03-25 14:22:53 -05:00
2023-08-29 20:32:10 -07:00
2023-06-26 07:47:11 +02:00
2023-06-05 21:11:08 +02:00
2023-03-14 15:20:51 +01:00
2023-07-04 06:57:38 +02:00