tag | a2f2694ec78d3c21097f6e4006f9fc99d4f6b6bd | |
---|---|---|
tagger | Jens Axboe <axboe@kernel.dk> | Fri Aug 20 20:49:00 2021 -0600 |
object | a30f895ad3239f45012e860d4f94c1a388b36d14 |
io_uring-5.14-2021-08-20
commit | a30f895ad3239f45012e860d4f94c1a388b36d14 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Fri Aug 20 14:53:59 2021 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Aug 20 14:59:58 2021 -0600 |
tree | 78252d0a8b081532cbf027d51343e4a0b744c8f8 | |
parent | 9cb0073b302a6b8a8c1015ff31b2b3ab4900f866 [diff] |
io_uring: fix xa_alloc_cycle() error return value check We currently check for ret != 0 to indicate error, but '1' is a valid return and just indicates that the allocation succeeded with a wrap. Correct the check to be for < 0, like it was before the xarray conversion. Cc: stable@vger.kernel.org Fixes: 61cf93700fe6 ("io_uring: Convert personality_idr to XArray") Signed-off-by: Jens Axboe <axboe@kernel.dk>