Commit ec8516f
io_uring: fix free of unallocated buffer list
in the error path of io_register_pbuf_ring, only free bl if it was
allocated.
Reported-by: Dipanjan Das <mail.dipanjan.das@gmail.com>
Fixes: c7fb194 ("io_uring: add support for ring mapped supplied buffers")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/all/CANX2M5bXKw1NaHdHNVqssUUaBCs8aBpmzRNVEYEvV0n44P7ioA@mail.gmail.com/
Link: https://lore.kernel.org/all/CANX2M5YiZBXU3L6iwnaLs-HHJXRvrxM8mhPDiMDF9Y9sAvOHUA@mail.gmail.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent d785a77 commit ec8516f
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12931 | 12931 | | |
12932 | 12932 | | |
12933 | 12933 | | |
12934 | | - | |
| 12934 | + | |
12935 | 12935 | | |
12936 | 12936 | | |
12937 | 12937 | | |
| |||
12963 | 12963 | | |
12964 | 12964 | | |
12965 | 12965 | | |
12966 | | - | |
| 12966 | + | |
12967 | 12967 | | |
12968 | 12968 | | |
12969 | 12969 | | |
| |||
12972 | 12972 | | |
12973 | 12973 | | |
12974 | 12974 | | |
12975 | | - | |
| 12975 | + | |
12976 | 12976 | | |
12977 | 12977 | | |
12978 | 12978 | | |
| |||
0 commit comments