vfs: make the string hashes salt the hash
[sfrench/cifs-2.6.git] / lib / test_hash.c
index c9549c8b49090d7e3bd7ee1484f31ae313334511..66c5fc8351e84d703373a3572d6afaea84c410da 100644 (file)
@@ -155,8 +155,8 @@ test_hash_init(void)
                buf[j] = '\0';
 
                for (i = 0; i <= j; i++) {
-                       u64 hashlen = hashlen_string(buf+i);
-                       u32 h0 = full_name_hash(buf+i, j-i);
+                       u64 hashlen = hashlen_string(buf+i, buf+i);
+                       u32 h0 = full_name_hash(buf+i, buf+i, j-i);
 
                        /* Check that hashlen_string gets the length right */
                        if (hashlen_len(hashlen) != j-i) {