commit | a6ea07556d0bd8dedfb0e154d9f10a74ec45d721 | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Sat Jun 13 20:41:56 2020 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Aug 21 11:01:58 2020 +0200 |
tree | fc7f19714545889ecf767ea49ab7221e85a04bf8 | |
parent | e51f5c5d5a3f5472ffb007ec09ecd9025fc84455 [diff] |
drm/nouveau: fix multiple instances of reference count leaks [ Upstream commit 659fb5f154c3434c90a34586f3b7aa1c39cf6062 ] On calling pm_runtime_get_sync() the reference count of the device is incremented. In case of failure, decrement the ref count before returning the error. Signed-off-by: Aditya Pakki <pakki001@umn.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>