/* This function is called when user space has no more references on the base object. It releases the base-object's reference on the resource object.  */
static void vmw_user_context_base_release(struct ttm_base_object **p_base)
/* This function is called when user space has no more references on the base object. It releases the base-object's reference on the resource object.  */
static void vmw_user_context_base_release(struct ttm_base_object **p_base)
{
	struct ttm_base_object *base = *p_base;
	struct vmw_user_context *ctx =
	    container_of(base, struct vmw_user_context, base);
	struct vmw_resource *res = &ctx->res;
	*p_base = NULL;
	vmw_resource_unreference(&res);
}