drm/vmwgfx: Fix error paths when mapping framebuffer
authorSinclair Yeh <syeh@vmware.com>
Thu, 7 Jul 2016 18:01:30 +0000 (11:01 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 8 Jul 2016 15:30:35 +0000 (08:30 -0700)
commit58541f7a6458e17ab417321b284f0090f530aa91
tree66552c974889d321d2b0cbd2233c37ff931e7619
parentbeca4cf55323147ca9c8a98de1871be6e4fe8f34
drm/vmwgfx: Fix error paths when mapping framebuffer

Rather than returning immediately, make sure to unlock the
mutexes first.

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reported-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: <stable@vger.kernel.org>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c