OSDN Git Service

drm/amd/chash: Fix typo
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 20 Sep 2017 15:38:19 +0000 (11:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2017 20:03:29 +0000 (16:03 -0400)
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/lib/chash.c

index e07e6f3..b8e45f3 100644 (file)
@@ -223,8 +223,8 @@ static int chash_table_check(struct __chash_table *table)
 static void chash_iter_relocate(struct chash_iter dst, struct chash_iter src)
 {
        BUG_ON(src.table == dst.table && src.slot == dst.slot);
-       BUG_ON(src.table->key_size != src.table->key_size);
-       BUG_ON(src.table->value_size != src.table->value_size);
+       BUG_ON(src.table->key_size != dst.table->key_size);
+       BUG_ON(src.table->value_size != dst.table->value_size);
 
        if (dst.table->key_size == 4)
                dst.table->keys32[dst.slot] = src.table->keys32[src.slot];