aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/cikd.h
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2025-03-06 15:51:48 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-03-07 12:55:56 -0500
commit1435e895d4fc967d64e9f5bf81e992ac32f5ac76 (patch)
tree9fa8aa7bf7c0ee8e0fb10fe78b16705b391b268b /drivers/gpu/drm/amd/amdgpu/cikd.h
parentdrm/amd/display: fix missing .is_two_pixels_per_container (diff)
downloadwireguard-linux-1435e895d4fc967d64e9f5bf81e992ac32f5ac76.tar.xz
wireguard-linux-1435e895d4fc967d64e9f5bf81e992ac32f5ac76.zip
drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()
Add error handling to propagate amdgpu_cgs_create_device() failures to the caller. When amdgpu_cgs_create_device() fails, release hwmgr and return -ENOMEM to prevent null pointer dereference. [v1]->[v2]: Change error code from -EINVAL to -ENOMEM. Free hwmgr. Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cikd.h')
0 files changed, 0 insertions, 0 deletions