summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2025-01-14 13:05:52 +0300
committerWolfram Sang <wsa+renesas@sang-engineering.com>2025-01-14 13:05:52 +0300
commita46fe1fe0144306c7d2cf3f5d4e44a7da31847f6 (patch)
tree93750672c10885f4e52eb9e296f130b6a9f1bc08 /lib
parent735668f8e5c99698100e9df1e296f76a51c3c83a (diff)
parentfd4e9308312972d5bd11fe1d8c032b95b44748cb (diff)
downloadlinux-a46fe1fe0144306c7d2cf3f5d4e44a7da31847f6.tar.xz
Merge branch 'i2c/i2c-host' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-mergewindow
Andi is unavailable for some time. So, I take over his work for this mergewindow.
Diffstat (limited to 'lib')
-rw-r--r--lib/maple_tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index d0ae808f3a14..047397136f15 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -4354,6 +4354,7 @@ int mas_alloc_cyclic(struct ma_state *mas, unsigned long *startp,
ret = 1;
}
if (ret < 0 && range_lo > min) {
+ mas_reset(mas);
ret = mas_empty_area(mas, min, range_hi, 1);
if (ret == 0)
ret = 1;