aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-04-26 08:49:20 +0000
committerAlex Deucher <[email protected]>2022-04-26 15:52:57 +0000
commit2f33a397e9605e70fe2082d727aa1501a9386b95 (patch)
treefe32be1f9d186703539f6a009cce6a691f0cb5e6 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/amdgpu: debugfs: fix error codes in write functions (diff)
downloadkernel-2f33a397e9605e70fe2082d727aa1501a9386b95.tar.gz
kernel-2f33a397e9605e70fe2082d727aa1501a9386b95.zip
drm/amdgpu: debugfs: fix NULL dereference in ta_if_invoke_debugfs_write()
If the kzalloc() fails then this code will crash. Return -ENOMEM instead. Fixes: e50d9ba0d2cd ("drm/amdgpu: Add debugfs TA load/unload/invoke support") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions