mirror_ubuntu-kernels/drivers/gpu/drm/amd/pm
Yang Wang 25e6373a5b drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()
- 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>
2023-08-07 17:14:06 -04:00
..
inc drm/amdgpu: open brace '{' following struct go on the same line 2023-07-25 13:44:00 -04:00
legacy-dpm drm changes for 6.5-rc1: 2023-06-29 11:00:17 -07:00
powerplay drm/amd: Use amdgpu_device_pcie_dynamic_switching_supported() for SMU7 2023-07-13 17:29:23 -04:00
swsmu drm/amd/pm: fix pp_dpm_sclk node not displaying correctly 2023-08-07 17:12:48 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_pm.c drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create() 2023-08-07 17:14:06 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00