Skip to content
Snippets Groups Projects
Commit e53f7b54 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Axboe
Browse files

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: b10b73c1 ("io_uring/kbuf: recycle freed mapped buffer ring entries")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/5ed268d3-a997-4f64-bd71-47faa92101ab@moroto.mountain


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f7b32e78
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment