diff options
Diffstat (limited to 'lib/xarray.c')
-rw-r--r-- | lib/xarray.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xarray.c b/lib/xarray.c index 8b176f009c08..c991ff4523ef 100644 --- a/lib/xarray.c +++ b/lib/xarray.c | |||
@@ -1829,6 +1829,8 @@ void *xa_find_after(struct xarray *xa, unsigned long *indexp, | |||
1829 | entry = xas_find_marked(&xas, max, filter); | 1829 | entry = xas_find_marked(&xas, max, filter); |
1830 | else | 1830 | else |
1831 | entry = xas_find(&xas, max); | 1831 | entry = xas_find(&xas, max); |
1832 | if (xas.xa_node == XAS_BOUNDS) | ||
1833 | break; | ||
1832 | if (xas.xa_shift) { | 1834 | if (xas.xa_shift) { |
1833 | if (xas.xa_index & ((1UL << xas.xa_shift) - 1)) | 1835 | if (xas.xa_index & ((1UL << xas.xa_shift) - 1)) |
1834 | continue; | 1836 | continue; |