linux/drivers/gpu/drm/amd/pm
Yang Wang f27dff881f drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()
[ Upstream commit 25e6373a5b ]

- fix variable ('attr') dereferenced issue.
- using condition check instead of BUG_ON().

Fixes: 4e01847c38 ("drm/amdgpu: optimize amdgpu device attribute code")
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:42 +02:00
..
inc drm/amd/pm: expose swctf threshold setting for legacy powerplay 2023-08-16 18:27:22 +02:00
legacy-dpm drm/amd/pm: resolve reboot exception for si oland 2023-06-09 10:34:21 +02:00
powerplay drm/amd/pm/smu7: move variables to where they are used 2023-08-16 18:27:31 +02:00
swsmu drm/amd/smu: use AverageGfxclkFrequency* to replace previous GFX Curr Clock 2023-09-13 09:42:22 +02:00
amdgpu_dpm_internal.c
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-05-17 11:53:50 +02:00
amdgpu_pm.c drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create() 2023-09-13 09:42:42 +02:00
Makefile