commit | 83443512a9493281dd9481681194ea45dbdfd5ee | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Sat Jun 13 20:33:42 2020 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Sep 03 11:24:21 2020 +0200 |
tree | f54646b8215630290a705a8c8dda0604be0b8b8d | |
parent | 8cfbac12a68bb660491759d56e37049a05289691 [diff] |
drm/nouveau/drm/noveau: fix reference count leak in nouveau_fbcon_open [ Upstream commit bfad51c7633325b5d4b32444efe04329d53297b2 ] nouveau_fbcon_open() calls calls pm_runtime_get_sync() that 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>