]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/radeon: fix multiple reference count leak
authorAditya Pakki <pakki001@umn.edu>
Sun, 14 Jun 2020 01:55:39 +0000 (20:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:22 +0000 (01:59 -0400)
commit6f2e8acdb48ed166b65d47837c31b177460491ec
tree889f39ad9c4641bc39a58aa8dba58ab7f8c46b26
parent74a353ffa0d49827fe19d71b2d6b18d11325806a
drm/radeon: fix multiple reference count leak

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.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_connectors.c