diff options
author | Kunwu Chan <chentao@kylinos.cn> | 2024-04-23 16:21:02 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-04-28 08:42:58 +0100 |
commit | 80164282b3620a3cb73de6ffda5592743e448d0e (patch) | |
tree | a2306bdf54251e37071d9e4421a945ccb374453b /rust/helpers | |
parent | b7fab1b69b9c4c152c185af8fb375810e70cb606 (diff) |
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 'rust/helpers')
0 files changed, 0 insertions, 0 deletions