diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-08-20 14:53:59 -0600 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2021-08-26 08:35:19 -0400 |
commit | a57b2a703e4440b9490cc8888618af9b05f2b457 (patch) | |
tree | f8a8e9e53ab10ee80532911585aa944c52a37043 /fs/ext4/xattr_trusted.c | |
parent | 515b6124df6a84c957c5cc6bb6e8309dae7b1e9c (diff) |
io_uring: fix xa_alloc_cycle() error return value check
[ Upstream commit a30f895ad3239f45012e860d4f94c1a388b36d14 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/ext4/xattr_trusted.c')
0 files changed, 0 insertions, 0 deletions