]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0aeb901623365b6fcb181960c86414bed9612bdc
tree1ebdac6c222f65df90b970fa8e6cc160454adfaf
parent8c3de37ab1af544f17de0a999db6c404aeb79cc2
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