'entry' should be 'val' which is the loop iterator.

Fixes: 9e931f2e0970 ("drm/vmwgfx: Refactor resource validation hashtable to use 
linux/hashtable implementation.")
Signed-off-by: Ian Forbes <[email protected]>
---
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c 
b/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c
index 4d0fb71f6211..35dc94c3db39 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c
@@ -638,7 +638,7 @@ void vmw_validation_drop_ht(struct vmw_validation_context 
*ctx)
                hash_del_rcu(&val->hash.head);
 
        list_for_each_entry(val, &ctx->resource_ctx_list, head)
-               hash_del_rcu(&entry->hash.head);
+               hash_del_rcu(&val->hash.head);
 
        ctx->sw_context = NULL;
 }
-- 
2.51.0

Reply via email to