diff options
author | Guangshuo Li <lgs201920130244@gmail.com> | 2025-09-18 13:57:05 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-18 23:59:27 +0300 |
commit | cc9a8e238e42c1f43b98c097995137d644b69245 (patch) | |
tree | 34b886e43f104b7152a95e40ff826661861082d3 /drivers/fpga/zynq-fpga.c | |
parent | 59e4405e9ee2b318342d252422a82dd863b89ef4 (diff) | |
download | linux-cc9a8e238e42c1f43b98c097995137d644b69245.tar.xz |
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 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions