summaryrefslogtreecommitdiffstats
path: root/lib/idr.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2019-07-01 17:03:29 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2019-07-01 17:11:16 -0400
commit91abab83839aa2eba073e4a63c729832fdb27ea1 (patch)
tree3a083d68dc7d4fdca445313c74852943fafbf7f4 /lib/idr.c
parent6fbc7275c7a9ba97877050335f290341a1fd8dbf (diff)
downloadlinux-91abab83839aa2eba073e4a63c729832fdb27ea1.tar.gz
linux-91abab83839aa2eba073e4a63c729832fdb27ea1.tar.bz2
linux-91abab83839aa2eba073e4a63c729832fdb27ea1.zip
XArray: Fix xas_next() with a single entry at 0
If there is only a single entry at 0, the first time we call xas_next(), we return the entry. Unfortunately, all subsequent times we call xas_next(), we also return the entry at 0 instead of noticing that the xa_index is now greater than zero. This broke find_get_pages_contig(). Fixes: 64d3e9a9e0cc ("xarray: Step through an XArray") Reported-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'lib/idr.c')
0 files changed, 0 insertions, 0 deletions