diff options
author | Kunwu Chan <chentao@kylinos.cn> | 2023-11-22 06:06:51 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-11-27 14:01:15 +0300 |
commit | 45b1ba7e5d1f6881050d558baf9bc74a2ae13930 (patch) | |
tree | e72b8e446c86aa24cad6cdc60636221b887b41a5 /tools/perf/scripts/python/syscall-counts.py | |
parent | 1b1e38002648819c04773647d5242990e2824264 (diff) | |
download | linux-45b1ba7e5d1f6881050d558baf9bc74a2ae13930.tar.xz |
powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu
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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231122030651.3818-1-chentao@kylinos.cn
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions