diff options
author | Kunwu Chan <chentao@kylinos.cn> | 2024-01-19 10:49:48 +0100 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2024-02-12 20:14:52 +0100 |
commit | 3693bb4465e6e32a204a5b86d3ec7e6b9f7e67c2 (patch) | |
tree | 90f2008c1a550d2ad461915cc9d4a079dafec63a /drivers/w1 | |
parent | xen/xenbus: document will_handle argument for xenbus_watch_path() (diff) | |
download | linux-3693bb4465e6e32a204a5b86d3ec7e6b9f7e67c2.tar.xz linux-3693bb4465e6e32a204a5b86d3ec7e6b9f7e67c2.zip |
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>
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions