Re: [PATCH] xen/blkback: fix memory leaks

From: Jens Axboe
Date: Mon Aug 12 2019 - 10:18:54 EST


On 8/11/19 10:23 AM, Wenwen Wang wrote:
> 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.

Applied, thanks.

--
Jens Axboe