/Thomas > --- > Â drivers/gpu/drm/vmwgfx/vmwgfx_validation.c | 5 +++-- > Â 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c > b/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c > index e7625b3f71e0..e11837e484aa 100644 > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c > @@ -262,7 +262,8 @@ int vmw_validation_add_bo(struct > vmw_validation_context *ctx, > Â bo_node->hash.key); > Â } > Â val_buf = &bo_node->base; > - val_buf->bo = ttm_bo_get_unless_zero(&vbo->tbo); > + vmw_bo_reference(vbo); > + val_buf->bo = &vbo->tbo; > Â if (!val_buf->bo) > Â return -ESRCH; > Â val_buf->num_shared = 0; > @@ -656,7 +657,7 @@ void vmw_validation_unref_lists(struct > vmw_validation_context *ctx) > Â struct vmw_validation_res_node *val; > Â > Â list_for_each_entry(entry, &ctx->bo_list, base.head) { > - ttm_bo_put(entry->base.bo); > + drm_gem_object_put(&entry->base.bo->base); > Â entry->base.bo = NULL; > Â } > Â