diff options
author | Guangshuo Li <lgs201920130244@gmail.com> | 2025-09-18 18:57:05 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-18 16:59:27 -0400 |
commit | cc9a8e238e42c1f43b98c097995137d644b69245 (patch) | |
tree | 34b886e43f104b7152a95e40ff826661861082d3 /rust/helpers/vmalloc.c | |
parent | 59e4405e9ee2b318342d252422a82dd863b89ef4 (diff) |
drm/amdgpu/atom: Check kcalloc() for WS buffer in amdgpu_atom_execute_table_locked()
kcalloc() may fail. When WS is non-zero and allocation fails, ectx.ws
remains NULL while ectx.ws_size is set, leading to a potential NULL
pointer dereference in atom_get_src_int() when accessing WS entries.
Return -ENOMEM on allocation failure to avoid the NULL dereference.
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions