Skip to content

Commit

Permalink
drm/vmwgfx: Fix an fb unlocking bug
Browse files Browse the repository at this point in the history
A regression introduced when the master ttm lock was split into two.

Reported-and-tested-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
  • Loading branch information
Thomas Hellstrom committed Aug 5, 2015
1 parent dcd14dd commit 1261797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1261797

Please sign in to comment.