diff options
author | Guangshuo Li <202321181@mail.sdu.edu.cn> | 2025-09-18 14:44:10 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2025-09-18 14:44:10 +0300 |
commit | ac398f570724c41e5e039d54e4075519f6af7408 (patch) | |
tree | 46fcc5e8ee5a79ba7b4d3218fc1342bfea5b3639 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | 677d4a52d4dc4a147d5e84af9ff207832578be70 (diff) | |
download | linux-ac398f570724c41e5e039d54e4075519f6af7408.tar.xz |
LoongArch: vDSO: Check kcalloc() result in init_vdso()
Add a NULL-pointer check after the kcalloc() call in init_vdso(). If
allocation fails, return -ENOMEM to prevent a possible dereference of
vdso_info.code_mapping.pages when it is NULL.
Cc: stable@vger.kernel.org
Fixes: 2ed119aef60d ("LoongArch: Set correct size for vDSO code mapping")
Signed-off-by: Guangshuo Li <202321181@mail.sdu.edu.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions