diff options
author | 2020-01-31 17:42:33 -0800 | |
---|---|---|
committer | 2020-01-31 17:42:33 -0800 | |
commit | b19efcabb587e5470a423ef778905f47e5a47f1a (patch) | |
tree | 8863c2233ed8a30d55c4e4029a98c3d7faf359a8 /lib/xarray.c | |
parent | Input: pm8xxx-vib - fix handling of separate enable register (diff) | |
parent | Input: synaptics-rmi4 - switch to reduced reporting mode (diff) | |
download | linux-dev-b19efcabb587e5470a423ef778905f47e5a47f1a.tar.xz linux-dev-b19efcabb587e5470a423ef778905f47e5a47f1a.zip |
Merge branch 'next' into for-linus
Prepare input updates for 5.6 merge window.
Diffstat (limited to 'lib/xarray.c')
-rw-r--r-- | lib/xarray.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/xarray.c b/lib/xarray.c index 446b956c9188..1237c213f52b 100644 --- a/lib/xarray.c +++ b/lib/xarray.c @@ -994,6 +994,8 @@ void *__xas_prev(struct xa_state *xas) if (!xas_frozen(xas->xa_node)) xas->xa_index--; + if (!xas->xa_node) + return set_bounds(xas); if (xas_not_node(xas->xa_node)) return xas_load(xas); @@ -1031,6 +1033,8 @@ void *__xas_next(struct xa_state *xas) if (!xas_frozen(xas->xa_node)) xas->xa_index++; + if (!xas->xa_node) + return set_bounds(xas); if (xas_not_node(xas->xa_node)) return xas_load(xas); |