aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/rhashtable.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-04-08 13:03:09 +0200
committerLinus Walleij <linus.walleij@linaro.org>2019-04-08 13:03:09 +0200
commit26af34079f1d8299932303cfd2b376b9cf55a35c (patch)
treef1a9824855fae569aa51c2109a5929715143093d /lib/rhashtable.c
parentgpio: mmio: Drop bgpio_dir_inverted (diff)
parentLinux 5.1-rc3 (diff)
downloadwireguard-linux-26af34079f1d8299932303cfd2b376b9cf55a35c.tar.xz
wireguard-linux-26af34079f1d8299932303cfd2b376b9cf55a35c.zip
Merge tag 'v5.1-rc3' into devel
Linux 5.1-rc3
Diffstat (limited to '')
-rw-r--r--lib/rhashtable.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c
index 0a105d4af166..97f59abc3e92 100644
--- a/lib/rhashtable.c
+++ b/lib/rhashtable.c
@@ -416,8 +416,12 @@ static void rht_deferred_worker(struct work_struct *work)
else if (tbl->nest)
err = rhashtable_rehash_alloc(ht, tbl, tbl->size);
- if (!err)
- err = rhashtable_rehash_table(ht);
+ if (!err || err == -EEXIST) {
+ int nerr;
+
+ nerr = rhashtable_rehash_table(ht);
+ err = err ?: nerr;
+ }
mutex_unlock(&ht->mutex);