diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2019-11-02 04:25:08 +0000 |
|---|---|---|
| committer | Matthew Wilcox (Oracle) <[email protected]> | 2019-11-03 11:36:50 +0000 |
| commit | b7e9728f3d7fc5c5c8508d99f1675212af5cfd49 (patch) | |
| tree | 15be71399abd81c6661f5cac4c79b79ec3fdf07e /lib/test_xarray.c | |
| parent | idr: Fix integer overflow in idr_for_each_entry (diff) | |
| download | kernel-b7e9728f3d7fc5c5c8508d99f1675212af5cfd49.tar.gz kernel-b7e9728f3d7fc5c5c8508d99f1675212af5cfd49.zip | |
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) <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
