OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5941dd
)
nvme: Fix memleak in nvme_dma_read_prp
author
Lu Lina
<lina.lulina@huawei.com>
Fri, 19 Jun 2015 06:27:34 +0000
(14:27 +0800)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Tue, 23 Jun 2015 14:06:17 +0000
(15:06 +0100)
Signed-off-by: Lu Lina <lina.lulina@huawei.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Message-id:
1434695254
-69808-1-git-send-email-kathy.wangting@huawei.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/nvme.c
patch
|
blob
|
history
diff --git
a/hw/block/nvme.c
b/hw/block/nvme.c
index
4b6d5e6
..
c6a6a0e
100644
(file)
--- 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;
}