Commit b27de70
io_uring: fix memory leak of uid in files registration
commit c86d18f upstream.
When there are no files for __io_sqe_files_scm() to process in the
range, it'll free everything and return. However, it forgets to put uid.
Fixes: 08a4517 ("io_uring: allow sparse fixed file sets")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/accee442376f33ce8aaebb099d04967533efde92.1648226048.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 20499ed commit b27de70
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7350 | 7350 | | |
7351 | 7351 | | |
7352 | 7352 | | |
| 7353 | + | |
7353 | 7354 | | |
7354 | 7355 | | |
7355 | 7356 | | |
| |||
0 commit comments