1
0
Fork 0

lib: test_rhashtable: Fix KASAN warning

I forgot one spot when introducing struct test_obj_val.

Fixes: e859afe1ee ("lib: test_rhashtable: fix for large entry counts")
Reported by: kernel test robot <fengguang.wu@intel.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
zero-colors
Phil Sutter 2017-07-25 13:36:21 +02:00 committed by David S. Miller
parent 2eaa38d9fc
commit 783692558a
1 changed files with 3 additions and 1 deletions

View File

@ -223,7 +223,9 @@ static s64 __init test_rhashtable(struct rhashtable *ht)
pr_info(" Deleting %d keys\n", entries);
for (i = 0; i < entries; i++) {
u32 key = i * 2;
struct test_obj_val key = {
.id = i * 2,
};
if (array[i].value.id != TEST_INSERT_FAIL) {
obj = rhashtable_lookup_fast(ht, &key, test_rht_params);