drm/vmwgfx: Fix error paths when mapping framebuffer

commit 58541f7a64 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sinclair Yeh 2016-07-07 11:01:30 -07:00 • committed by Greg Kroah-Hartman
commit ed71c68ba0