summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-08-20 22:53:59 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-20 22:59:58 +0200
commita30f895ad3239f45012e860d4f94c1a388b36d14 (patch)
tree78252d0a8b081532cbf027d51343e4a0b744c8f8 /COPYING
parentio_uring: pin ctx on fallback execution (diff)
downloadlinux-a30f895ad3239f45012e860d4f94c1a388b36d14.tar.xz
linux-a30f895ad3239f45012e860d4f94c1a388b36d14.zip
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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions