summaryrefslogtreecommitdiff
path: root/include/linux/idr.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2019-11-02 07:25:08 +0300
committerMatthew Wilcox (Oracle) <willy@infradead.org>2019-11-03 14:36:50 +0300
commitb7e9728f3d7fc5c5c8508d99f1675212af5cfd49 (patch)
tree15be71399abd81c6661f5cac4c79b79ec3fdf07e /include/linux/idr.h
parentf6341c5af4e6e15041be39976d16deca789555fa (diff)
downloadlinux-b7e9728f3d7fc5c5c8508d99f1675212af5cfd49.tar.xz
idr: Fix idr_alloc_u32 on 32-bit systems
Attempting to allocate an entry at 0xffffffff when one is already present would succeed in allocating one at 2^32, which would confuse everything. Return -ENOSPC in this case, as expected. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'include/linux/idr.h')
0 files changed, 0 insertions, 0 deletions