drm/nouveau/drm/noveau: fix reference count leak in nouveau_fbcon_open
authorAditya Pakki <pakki001@umn.edu>
Sun, 14 Jun 2020 01:33:42 +0000 (20:33 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 08:50:49 +0000 (18:50 +1000)
commitbfad51c7633325b5d4b32444efe04329d53297b2
tree48ede1ae4547291f83a012c3c21254cfd18677bd
parenteddb04732992982169cd40068cd231e63b30065b
drm/nouveau/drm/noveau: fix reference count leak in nouveau_fbcon_open

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>
drivers/gpu/drm/nouveau/nouveau_fbcon.c