diff options
author | Phil Sutter <phil@nwl.cc> | 2017-07-25 07:36:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-25 15:35:23 -0400 |
commit | 783692558a60cd69d8d86900b33846263598ca6c (patch) | |
tree | 83cbf68bea022b47ed8f4e8d95afd900e57aed98 /lib/test_rhashtable.c | |
parent | 2eaa38d9fcba5294182268b8d11770cf3fdc9bc9 (diff) |
lib: test_rhashtable: Fix KASAN warning
I forgot one spot when introducing struct test_obj_val.
Fixes: e859afe1ee0c5 ("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>
Diffstat (limited to 'lib/test_rhashtable.c')
-rw-r--r-- | lib/test_rhashtable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/test_rhashtable.c b/lib/test_rhashtable.c index 16949d219291..0ffca990a833 100644 --- a/lib/test_rhashtable.c +++ b/lib/test_rhashtable.c | |||
@@ -223,7 +223,9 @@ static s64 __init test_rhashtable(struct rhashtable *ht) | |||
223 | 223 | ||
224 | pr_info(" Deleting %d keys\n", entries); | 224 | pr_info(" Deleting %d keys\n", entries); |
225 | for (i = 0; i < entries; i++) { | 225 | for (i = 0; i < entries; i++) { |
226 | u32 key = i * 2; | 226 | struct test_obj_val key = { |
227 | .id = i * 2, | ||
228 | }; | ||
227 | 229 | ||
228 | if (array[i].value.id != TEST_INSERT_FAIL) { | 230 | if (array[i].value.id != TEST_INSERT_FAIL) { |
229 | obj = rhashtable_lookup_fast(ht, &key, test_rht_params); | 231 | obj = rhashtable_lookup_fast(ht, &key, test_rht_params); |