]> 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)
commitb828d7e8ac2031399467bf381a9fb70cc622bec2
tree1ebdac6c222f65df90b970fa8e6cc160454adfaf
parent211ba61453b649cfbb28c7cc65758b1798a4a39d
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