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
---
arch/x86/xen/smp.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/x86/xen/smp.c b/a
rnel.org/r/20240115100138.34340-1-chentao%40kylinos.cn
patch subject: [PATCH] x86/xen: Fix some null pointer dereference issues in
smp.c
config: x86_64-rhel-8.3-rust
(https://download.01.org/0day-ci/archive/20240116/202401161119.iof6bqsf-...@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0