commit | 0ba1cb622ad55cb2f567a92d59a24f30d2c3ae74 | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Sat Jun 13 21:21:22 2020 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Aug 21 11:01:58 2020 +0200 |
tree | 788698d38a7dc29b42ddecf717773ecc748d0610 | |
parent | fc043bd90c6382dc782be4b583a66bf6bcfa8923 [diff] |
drm/radeon: Fix reference count leaks caused by pm_runtime_get_sync [ Upstream commit 9fb10671011143d15b6b40d6d5fa9c52c57e9d63 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>