commit | e15bc26ff99cdcb459a59ba5f35ebe2549ed9390 | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Sat Jun 13 20:29:18 2020 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Sep 03 11:24:21 2020 +0200 |
tree | b83a73ee8b2e8112489a3cf5be48158e85d888a1 | |
parent | 83443512a9493281dd9481681194ea45dbdfd5ee [diff] |
drm/nouveau: fix reference count leak in nv50_disp_atomic_commit [ Upstream commit a2cdf39536b0d21fb06113f5e16692513d7bcb9c ] nv50_disp_atomic_commit() calls calls pm_runtime_get_sync and in turn increments the reference count. 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>