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:22:25 +0000 (11:22 +0200)
commita0f19b6175ddeb13f85b7a82c46c5a07c15a2b37
treeb63ded9876dd7eafd79fabcaaa29bd6d03afe112
parent4704cd249f8d28c5cd9fe29148e6833f0dd54b02
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