aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-04-23 16:21:02 +0800
committerWill Deacon <will@kernel.org>2024-04-28 08:42:58 +0100
commit80164282b3620a3cb73de6ffda5592743e448d0e (patch)
treea2306bdf54251e37071d9e4421a945ccb374453b /rust/helpers
parentb7fab1b69b9c4c152c185af8fb375810e70cb606 (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