mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
2eaa38d9fc
commit
783692558a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue