idr: Fix idr_get_next_ul race with idr_remove
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 2 Nov 2019 01:36:39 +0000 (21:36 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 2 Nov 2019 02:26:34 +0000 (22:26 -0400)
commit5a74ac4c4a97bd8b7dba054304d598e2a882fea6
treecb2bf8f5d805d99450ce514de25bc31729b00c16
parent91abab83839aa2eba073e4a63c729832fdb27ea1
idr: Fix idr_get_next_ul race with idr_remove

Commit 5c089fd0c734 ("idr: Fix idr_get_next race with idr_remove")
neglected to fix idr_get_next_ul().  As far as I can tell, nobody's
actually using this interface under the RCU read lock, but fix it now
before anybody decides to use it.

Fixes: 5c089fd0c734 ("idr: Fix idr_get_next race with idr_remove")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
lib/idr.c