diff options
| author | Yang Wang <[email protected]> | 2023-08-01 08:53:23 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-07 21:14:06 +0000 |
| commit | 25e6373a5b8efc623443f2699d2b929bf3067d76 (patch) | |
| tree | a7ef1f06bd418f656ae11698588dade4c897bc60 /drivers/gpu/drm/amd/amdgpu/nv.c | |
| parent | drm/amdgpu: Add pci replay count to nbio v7.9 (diff) | |
| download | kernel-25e6373a5b8efc623443f2699d2b929bf3067d76.tar.gz kernel-25e6373a5b8efc623443f2699d2b929bf3067d76.zip | |
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 <[email protected]>
Signed-off-by: Yang Wang <[email protected]>
Reviewed-by: Kenneth Feng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nv.c')
0 files changed, 0 insertions, 0 deletions
