浏览代码

drm/vmwgfx: Remove the user resource destructor check

We were checking that the resource destructor matched that of the
intended object type, to make sure the looked up resource was of the
right type.

But we already have an object type check in place which makes sure the
resource is of the right type.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Thomas Hellstrom 6 年之前
父节点
当前提交
b1d05b4fc6
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      drivers/gpu/drm/vmwgfx/vmwgfx_resource.c

+ 0 - 3
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c

@@ -219,9 +219,6 @@ int vmw_user_resource_lookup_handle(struct vmw_private *dev_priv,
 		goto out_bad_resource;
 		goto out_bad_resource;
 
 
 	res = converter->base_obj_to_res(base);
 	res = converter->base_obj_to_res(base);
-	if (res->res_free != converter->res_free)
-		goto out_bad_resource;
-
 	kref_get(&res->kref);
 	kref_get(&res->kref);
 
 
 	*p_res = res;
 	*p_res = res;