Commit ced18efa authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Luis Henriques

drm/vmwgfx: Fix an fb unlocking bug

commit 12617971 upstream.

A regression introduced when the master ttm lock was split into two.
Reported-and-tested-by: default avatarBrian Paul <brianp@vmware.com>
Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 74f8c94d
......@@ -396,12 +396,12 @@ static int vmw_fb_create_bo(struct vmw_private *vmw_priv,
*out = vmw_bo;
ttm_write_unlock(&vmw_priv->fbdev_master.lock);
ttm_write_unlock(&vmw_priv->reservation_sem);
return 0;
err_unlock:
ttm_write_unlock(&vmw_priv->fbdev_master.lock);
ttm_write_unlock(&vmw_priv->reservation_sem);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment