summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorMatthew Wilcox2018-12-13 19:57:42 +0100
committerMatthew Wilcox2018-12-13 20:07:33 +0100
commit48483614de97c4f5219abeda630e62b2bebdce62 (patch)
treeefd9c5d74cf60cdd6ff5c5f618f74e6fffed0493 /mm/shmem.c
parentXArray tests: Check iterating over multiorder entries (diff)
downloadkernel-qcow2-linux-48483614de97c4f5219abeda630e62b2bebdce62.tar.gz
kernel-qcow2-linux-48483614de97c4f5219abeda630e62b2bebdce62.tar.xz
kernel-qcow2-linux-48483614de97c4f5219abeda630e62b2bebdce62.zip
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: b803b42823d0 ("xarray: Add XArray iterators") Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions