Skip to content
Commit 48483614 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

XArray: Fix xa_alloc when id exceeds max



Specifying a starting ID greater than the maximum ID isn't something
attempted very often, but it should fail.  It was succeeding due to
xas_find_marked() returning the wrong error state, so add tests for
both xa_alloc() and xas_find_marked().

Fixes: b803b428 ("xarray: Add XArray iterators")
Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
parent 4f145cd6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment