diff options
author | Kunwu Chan <chentao@kylinos.cn> | 2024-04-23 11:21:02 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-04-28 10:42:58 +0300 |
commit | 80164282b3620a3cb73de6ffda5592743e448d0e (patch) | |
tree | a2306bdf54251e37071d9e4421a945ccb374453b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b7fab1b69b9c4c152c185af8fb375810e70cb606 (diff) | |
download | linux-80164282b3620a3cb73de6ffda5592743e448d0e.tar.xz |
kselftest: arm64: Add a null pointer check
There is a 'malloc' call, which can be unsuccessful.
This patch will add the malloc failure checking
to avoid possible null dereference and give more information
about test fail reasons.
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/r/20240423082102.2018886-1-chentao@kylinos.cn
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions