XArray: Fix xas_find returning too many entries
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 18 Jan 2020 03:13:21 +0000 (22:13 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 18 Jan 2020 03:33:33 +0000 (22:33 -0500)
commitc44aa5e8ab58b5f4cf473970ec784c3333496a2e
tree1ebdac6c222f65df90b970fa8e6cc160454adfaf
parent19c30f4dd0923ef191f35c652ee4058e91e89056
XArray: Fix xas_find returning too many entries

If you call xas_find() with the initial index > max, it should have
returned NULL but was returning the entry at index.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: stable@vger.kernel.org
lib/test_xarray.c
lib/xarray.c