]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:08 +0000 (16:23 +0200)
[ Upstream commit 228c5d44dffe8c293cd2d2f0e7ea45e64565b1c4 ]

'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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/vmwgfx/vmwgfx_validation.c

index d37cf22e9caeb752f6560599f9ae93f63afa970b..27f33297fcf3e0c9f893910a4ea9ac6ab3468520 100644 (file)
@@ -692,7 +692,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;
 }