diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2018-04-05 16:26:16 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-09-14 13:56:59 +0200 |
commit | 1ca9c4cf4046ca274955cb0bcf3da56dca81e036 (patch) | |
tree | dbbaf88a81e00e36faf290134be3b29ff98f0454 | |
parent | 48fb362e2239a4651647ee607c879a38c45931b2 (diff) |
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>
-rw-r--r-- | vmwgfx_resource.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/vmwgfx_resource.c b/vmwgfx_resource.c index bf78086..6cc38d0 100644 --- a/vmwgfx_resource.c +++ b/vmwgfx_resource.c @@ -219,9 +219,6 @@ int vmw_user_resource_lookup_handle(struct vmw_private *dev_priv, goto out_bad_resource; res = converter->base_obj_to_res(base); - if (res->res_free != converter->res_free) - goto out_bad_resource; - kref_get(&res->kref); *p_res = res; |