RE: [PATCH] drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()

2023-08-01 Thread Feng, Kenneth
[AMD Official Use Only - General] Reviewed-by: Kenneth Feng -Original Message- From: amd-gfx On Behalf Of Yang Wang Sent: Tuesday, August 1, 2023 5:16 PM To: amd-gfx@lists.freedesktop.org Cc: Dan Carpenter ; Wang, Yang(Kevin) Subject: [PATCH] drm/amd/pm: fix variable dereferenced

[PATCH] drm/amd/pm: fix variable dereferenced issue in amdgpu_device_attr_create()

2023-08-01 Thread Yang Wang
- fix variable ('attr') dereferenced issue. - using condition check instead of BUG_ON(). Fixes: 4e01847c38f7 ("drm/amdgpu: optimize amdgpu device attribute code") Cc: Dan Carpenter Signed-off-by: Yang Wang --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 10 +++--- 1 file changed, 7 insertions(+),