summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-16 09:58:05 +0000
committerAlex Deucher <alexander.deucher@amd.com>2026-09-23 15:53:05 -0400
commit2b86ab1bd6673c525adda88819d7658ba9e784ec (patch)
tree7b4290de2ecd29e945ed10dcb00ec740f5d28132 /tools/perf/scripts/python/stackcollapse.py
parentb4f7b4459b1b155e4c4977a6482b5df2cf08758c (diff)
downloadlinux-next-2b86ab1bd6673c525adda88819d7658ba9e784ec.tar.gz
linux-next-2b86ab1bd6673c525adda88819d7658ba9e784ec.zip
drm/amdgpu: Fix runtime PM leak in amdgpu_debugfs_test_ib_show()
amdgpu_debugfs_test_ib_show() resumes the device with pm_runtime_get_sync() before taking the reset domain semaphore with down_write_killable(). If the write lock acquisition is interrupted, the function returns without calling pm_runtime_put_autosuspend(), leaking the runtime PM reference acquired for the device and keeping the GPU awake. Drop the runtime PM reference on the interrupted down_write_killable() error path before returning. Fixes: 6049db43d6dd ("drm/amdgpu: change reset lock from mutex to rw_semaphore") Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit ec30a576c2d4c0364549e6c04218f50704ef56c8) Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions