]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Fix reference count leaks caused by pm_runtime_get_sync
authorAditya Pakki <pakki001@umn.edu>
Sun, 14 Jun 2020 02:21:22 +0000 (21:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:22 +0000 (01:59 -0400)
commitf6144346be65033ba92a51ef38c1fbb08db0befc
tree9d95ded0889b96230f33f8e9ff14c004333c4f2d
parenteb7f02fee9e1a89de5adecb336812184b06a01a5
drm/radeon: Fix reference count leaks caused by pm_runtime_get_sync

On calling pm_runtime_get_sync() the reference count of the device
is incremented. In case of failure, decrement the
reference count before returning the error.

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_kms.c