diff options
author | Colin Ian King <[email protected]> | 2021-04-29 11:46:02 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-04-29 13:26:19 -0600 |
commit | cf3770e78421f268dee3c1eef5e8a5d284ec3416 (patch) | |
tree | 00d90c9f6a79be0de7da1d1e2dae34fe4ab348dd /drivers/usb/cdns3/cdns3-imx.c | |
parent | 47b228ce6f66830768eac145efa7746637969101 (diff) |
io_uring: Fix premature return from loop and memory leak
Currently the -EINVAL error return path is leaking memory allocated
to data. Fix this by not returning immediately but instead setting
the error return variable to -EINVAL and breaking out of the loop.
Kudos to Pavel Begunkov for suggesting a correct fix.
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions