Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/amd/amdgpu
Yang Yingliang 3725a8f26b drm/amdgpu: fix pci device refcount leak
[ Upstream commit b85e285e3d6352b02947fc1b72303673dfacb0aa ]

As comment of pci_get_domain_bus_and_slot() says, it returns
a pci device with refcount increment, when finish using it,
the caller must decrement the reference count by calling
pci_dev_put().

So before returning from amdgpu_device_resume|suspend_display_audio(),
pci_dev_put() is called to avoid refcount leak.

Fixes: 3f12acc8d6 ("drm/amdgpu: put the audio codec into suspend state before gpu reset V3")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-14 10:15:31 +01:00
..
2021-06-03 09:00:44 +02:00
2019-09-16 09:59:21 -05:00
2019-06-20 11:36:22 -05:00
2019-06-10 23:00:01 +02:00
2020-10-30 01:17:43 -04:00
2021-03-09 11:11:12 +01:00
2022-04-20 09:23:18 +02:00
2020-05-22 13:41:53 -04:00
2020-07-02 12:02:50 -04:00
2020-07-01 01:59:24 -04:00
2020-08-14 16:22:39 -04:00
2020-11-24 12:30:37 -05:00
2020-07-01 01:59:24 -04:00
2020-09-22 17:37:38 -04:00
2020-09-22 17:37:38 -04:00
2020-09-22 17:37:38 -04:00
2020-07-02 12:02:50 -04:00