diff options
author | Yang Wang <kevinyang.wang@amd.com> | 2023-08-01 16:53:23 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-08-07 17:14:06 -0400 |
commit | 25e6373a5b8efc623443f2699d2b929bf3067d76 (patch) | |
tree | a7ef1f06bd418f656ae11698588dade4c897bc60 /ipc/msg.c | |
parent | 50709d18f4a659cf7c1c6287498412f367442646 (diff) |
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: 4e01847c38f7 ("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>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions