From: Ting Wang <kathy.wangting@huawei.com>
To: qemu-devel@nongnu.org
Cc: Lu Lina <lina.lulina@huawei.com>
Subject: [Qemu-devel] [PATCH] nvme: Fix memleak in nvme_dma_read_prp
Date: Fri, 19 Jun 2015 14:27:34 +0800 [thread overview]
Message-ID: <1434695254-69808-1-git-send-email-kathy.wangting@huawei.com> (raw)
From: Lu Lina <lina.lulina@huawei.com>
Signed-off-by: Lu Lina <lina.lulina@huawei.com>
---
hw/block/nvme.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 4b6d5e6..c6a6a0e 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -154,6 +154,7 @@ static uint16_t nvme_dma_read_prp(NvmeCtrl *n, uint8_t *ptr, uint32_t len,
qemu_sglist_destroy(&qsg);
return NVME_INVALID_FIELD | NVME_DNR;
}
+ qemu_sglist_destroy(&qsg);
return NVME_SUCCESS;
}
--
1.8.5
next reply other threads:[~2015-06-19 6:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 6:27 Ting Wang [this message]
2015-06-19 12:57 ` [Qemu-devel] [PATCH] nvme: Fix memleak in nvme_dma_read_prp Stefan Hajnoczi
2015-06-19 14:54 ` Keith Busch
2015-06-22 9:58 ` Stefan Hajnoczi
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=1434695254-69808-1-git-send-email-kathy.wangting@huawei.com \
--to=kathy.wangting@huawei.com \
--cc=lina.lulina@huawei.com \
--cc=qemu-devel@nongnu.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).