diff options
author | 2019-04-08 13:03:09 +0200 | |
---|---|---|
committer | 2019-04-08 13:03:09 +0200 | |
commit | 26af34079f1d8299932303cfd2b376b9cf55a35c (patch) | |
tree | f1a9824855fae569aa51c2109a5929715143093d /lib/rhashtable.c | |
parent | gpio: mmio: Drop bgpio_dir_inverted (diff) | |
parent | Linux 5.1-rc3 (diff) | |
download | wireguard-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.c | 8 |
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); |