diff options
author | Wenwen Wang | 2019-08-11 19:23:22 +0200 |
---|---|---|
committer | Jens Axboe | 2019-08-12 16:18:37 +0200 |
commit | ae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0 (patch) | |
tree | 0b24e12d4a0d721511fc5ef63ad16f627c0954cc /fs/io_uring.c | |
parent | blk-mq: move cancel of requeue_work to the front of blk_exit_queue (diff) | |
download | kernel-qcow2-linux-ae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0.tar.gz kernel-qcow2-linux-ae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0.tar.xz kernel-qcow2-linux-ae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0.zip |
xen/blkback: fix memory leaks
In read_per_ring_refs(), after 'req' and related memory regions are
allocated, xen_blkif_map() is invoked to map the shared frame, irq, and
etc. However, if this mapping process fails, no cleanup is performed,
leading to memory leaks. To fix this issue, invoke the cleanup before
returning the error.
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
0 files changed, 0 insertions, 0 deletions