diff options
-rw-r--r-- | lib/rhashtable.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c index b41a5c09832a..e3a04e4b3ec5 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c | |||
@@ -903,6 +903,9 @@ int rhashtable_walk_init(struct rhashtable *ht, struct rhashtable_iter *iter) | |||
903 | if (!iter->walker) | 903 | if (!iter->walker) |
904 | return -ENOMEM; | 904 | return -ENOMEM; |
905 | 905 | ||
906 | INIT_LIST_HEAD(&iter->walker->list); | ||
907 | iter->walker->resize = false; | ||
908 | |||
906 | mutex_lock(&ht->mutex); | 909 | mutex_lock(&ht->mutex); |
907 | list_add(&iter->walker->list, &ht->walkers); | 910 | list_add(&iter->walker->list, &ht->walkers); |
908 | mutex_unlock(&ht->mutex); | 911 | mutex_unlock(&ht->mutex); |