]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/debugfs: fix memory leak when pm_runtime_get_sync failed
authorChen Tao <chentao107@huawei.com>
Wed, 17 Jun 2020 10:51:29 +0000 (18:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:22 +0000 (01:59 -0400)
commite7e91259fffe25a26090e78369ab7ce833544d57
treeaed83f642b910925578054f56f041e2dc6b67238
parent3430de77add88c9924a1e4deb11491c4877bffb2
drm/amdgpu/debugfs: fix memory leak when pm_runtime_get_sync failed

Fix memory leak in amdgpu_debugfs_gpr_read not freeing data when
pm_runtime_get_sync failed.

Fixes: bf6c7e8941a70 ("drm/amdgpu/debugfs: properly handle runtime pm")
Signed-off-by: Chen Tao <chentao107@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c