Commit 12617971 authored by Thomas Hellstrom's avatar Thomas Hellstrom

drm/vmwgfx: Fix an fb unlocking bug

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>
parent dcd14dd9
......@@ -402,12 +402,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