aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-pci-wrap.c
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2020-02-07 22:04:45 +0300
committerJens Axboe <[email protected]>2020-02-08 13:06:58 -0700
commit99bc4c38537d774e667d043c520914082da19abf (patch)
tree167b32f1f290b3baaf13ff56f5d547e35141b5c1 /drivers/usb/cdns3/cdns3-pci-wrap.c
parente96e977992d0ea40b6e70cb63dede85c9078e744 (diff)
io_uring: fix iovec leaks
Allocated iovec is freed only in io_{read,write,send,recv)(), and just leaves it if an error occured. There are plenty of such cases: - cancellation of non-head requests - fail grabbing files in __io_queue_sqe() - set REQ_F_NOWAIT and returning in __io_queue_sqe() Add REQ_F_NEED_CLEANUP, which will force such requests with custom allocated resourses go through cleanup handlers on put. Cc: [email protected] # 5.5 Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions