Patch "drm/vmwgfx: Fix error paths when mapping framebuffer" has been added to the 4.4-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm/vmwgfx: Fix error paths when mapping framebuffer
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-vmwgfx-fix-error-paths-when-mapping-framebuffer.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
58541f7a6458e17ab417321b284f0090f530aa91Mon Sep 17 00:00:00 2001
From: Sinclair Yeh <[email protected]>
Date: Thu, 7 Jul 2016 11:01:30 -0700
Subject: drm/vmwgfx: Fix error paths when mapping framebuffer
From: Sinclair Yeh <[email protected]>
commit 58541f7a6458e17ab417321b284f0090f530aa91 upstream.
Rather than returning immediately, make sure to unlock the mutexes first.
--- drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +2 -2
@@ -589,7 +589,7 @@ static int vmw_fb_set_par(struct fb_info ret = vfb->pin (vfb);if (ret) {DRM_ERROR ("Could not pin the fbdev framebuffer.\n" ); -return ret; + goto out_unlock; } ret = ttm_bo_kmap(&par->vmw_bo->base, 0,
@@ -597,7 +597,7 @@ static int vmw_fb_set_par(struct fb_infoif (ret) { vfb->unpin (vfb);DRM_ERROR ("Could not map the fbdev framebuffer.\n" ); -return ret; + goto out_unlock; } par->bo_ptr =ttm_kmap_obj_virtual (&par->map, &par->bo_iowrite);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/drm-ttm-make-ttm_bo_mem_compat-available.patch queue-4.4/drm-vmwgfx-delay-pinning-fbdev-framebuffer-until-after-mode-set.patch queue-4.4/drm-vmwgfx-add-an-option-to-change-assumed-fb-bpp.patch queue-4.4/drm-vmwgfx-check-pin-count-before-attempting-to-move-a-buffer.patch queue-4.4/drm-vmwgfx-work-around-mode-set-failure-in-2d-vms.patch queue-4.4/drm-vmwgfx-fix-error-paths-when-mapping-framebuffer.patch