]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/vmwgfx: Fix copy-paste typo in validation
authorIan Forbes <ian.forbes@broadcom.com>
Fri, 26 Sep 2025 19:54:26 +0000 (14:54 -0500)
committerZack Rusin <zack.rusin@broadcom.com>
Mon, 6 Oct 2025 15:57:59 +0000 (11:57 -0400)
'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 <ian.forbes@broadcom.com>
Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/r/20250926195427.1405237-2-ian.forbes@broadcom.com
drivers/gpu/drm/vmwgfx/vmwgfx_validation.c

index 4d0fb71f621110e6af7e7d83ee5643d98c3bf744..35dc94c3db39984110050df65ba37d8ef5099bf7 100644 (file)
@@ -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;
 }