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:29:17 +0000 (11:29 +0200)
commitbedae9feaca99326fa33c74b4ed647bcbca41ca1
tree271431d5d347bd92edd6202f28e8efc17bbe8b2d
parentd312f436dd10bfa2e8fba256fdcb7b1592230b9a
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