aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
diff options
context:
space:
mode:
authorGuangshuo Li <[email protected]>2025-09-18 11:44:10 +0000
committerHuacai Chen <[email protected]>2025-09-18 11:44:10 +0000
commitac398f570724c41e5e039d54e4075519f6af7408 (patch)
tree46fcc5e8ee5a79ba7b4d3218fc1342bfea5b3639 /drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
parentLoongArch: Fix unreliable stack for live patching (diff)
downloadkernel-ac398f570724c41e5e039d54e4075519f6af7408.tar.gz
kernel-ac398f570724c41e5e039d54e4075519f6af7408.zip
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: [email protected] Fixes: 2ed119aef60d ("LoongArch: Set correct size for vDSO code mapping") Signed-off-by: Guangshuo Li <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c')
0 files changed, 0 insertions, 0 deletions