Skip to content
Commit 80164282 authored by Kunwu Chan's avatar Kunwu Chan Committed by Will Deacon
Browse files

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: default avatarKunwu Chan <chentao@kylinos.cn>
Reviewed-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/r/20240423082102.2018886-1-chentao@kylinos.cn


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent b7fab1b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment