diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-12-05 15:37:17 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-05 06:59:56 -0700 |
commit | e53f7b54b1fdecae897f25002ff0cff04faab228 (patch) | |
tree | 2e310edfc7a9755e4c4182cb9a07d99dc9c83ad9 /fs/stat.c | |
parent | f7b32e785042d2357c5abc23ca6db1b92c91a070 (diff) | |
download | linux-e53f7b54b1fdecae897f25002ff0cff04faab228.tar.gz linux-e53f7b54b1fdecae897f25002ff0cff04faab228.tar.bz2 linux-e53f7b54b1fdecae897f25002ff0cff04faab228.zip |
io_uring/kbuf: Fix an NULL vs IS_ERR() bug in io_alloc_pbuf_ring()
The io_mem_alloc() function returns error pointers, not NULL. Update
the check accordingly.
Fixes: b10b73c102a2 ("io_uring/kbuf: recycle freed mapped buffer ring entries")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/5ed268d3-a997-4f64-bd71-47faa92101ab@moroto.mountain
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions