projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/amdgpu: fix fw leak in non-powerplay dpm code
[cascardo/linux.git]
/
drivers
/
gpu
/
drm
/
amd
/
amdgpu
/
ci_dpm.c
diff --git
a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
index
ea407db
..
5ec1f1e
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/ci_dpm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/ci_dpm.c
@@
-6221,6
+6221,9
@@
static int ci_dpm_sw_fini(void *handle)
ci_dpm_fini(adev);
mutex_unlock(&adev->pm.mutex);
+ release_firmware(adev->pm.fw);
+ adev->pm.fw = NULL;
+
return 0;
}