From: Jens Axboe <axboe@kernel.dk>
To: Wenwen Wang <wenwen@cs.uga.edu>
Cc: "Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"moderated list:XEN BLOCK SUBSYSTEM"
<xen-devel@lists.xenproject.org>,
"open list:BLOCK LAYER" <linux-block@vger.kernel.org>,
"open list" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] xen/blkback: fix memory leaks
Date: Mon, 12 Aug 2019 08:18:48 -0600 [thread overview]
Message-ID: <0b0bce35-a735-2484-37fa-11d7d3570a1b@kernel.dk> (raw)
In-Reply-To: <1565544202-3927-1-git-send-email-wenwen@cs.uga.edu>
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
prev parent reply other threads:[~2019-08-12 14:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-11 17:23 [PATCH] xen/blkback: fix memory leaks Wenwen Wang
2019-08-12 8:49 ` Roger Pau Monné
2019-08-12 12:41 ` Boris Ostrovsky
2019-08-12 14:18 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0b0bce35-a735-2484-37fa-11d7d3570a1b@kernel.dk \
--to=axboe@kernel.dk \
--cc=konrad.wilk@oracle.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roger.pau@citrix.com \
--cc=wenwen@cs.uga.edu \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).