drm/radeon: fix multiple reference count leak
authorAditya Pakki <pakki001@umn.edu>
Sun, 14 Jun 2020 01:55:39 +0000 (20:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:21:16 +0000 (11:21 +0200)
commit4daf2296e42f67a9eff15a4f346bcaac984f62e2
treed2347f1080d9f7a0e80ad139eecbdf15717df1eb
parentae8246779f14a5d1fc269d5de9fb588debdc3d94
drm/radeon: fix multiple reference count leak

[ Upstream commit 6f2e8acdb48ed166b65d47837c31b177460491ec ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/radeon/radeon_connectors.c