nvme: Fix memleak in nvme_dma_read_prp
PATCH 1/1 nvme: Fix memleak in nvme_dma_read_prp
From: Lu Lina <[email protected]>
Signed-off-by Lu Lina <[email protected]>
--- hw/block/nvme.c | 1 + 1 file changed, 1 insertion(+)
hw/block/nvme.c +1 -0
@@ -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 ; }
Signature · 1 line
1.8.5
On Fri, Jun 19, 2015 at 02:27:34PM +0800, Ting Wang wrote:
Please CC the maintainer of this source file:
$ scripts/get_maintainer.pl -f hw/block/nvme.c Keith Busch <[email protected]> (supporter:nvme) Kevin Wolf <[email protected]> (supporter:Block layer core) [email protected] (open list:nvme)
Quoted 3 lines
From: Lu Lina <[email protected]>
Signed-off-by Lu Lina <[email protected]>
Your Signed-off-by is missing.
Quoted 21 lines
--- hw/block/nvme.c | 1 + 1 file changed, 1 insertion(+)hw/block/nvme.c +1
-0@@ -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 ; }Signature · 1 line
1.8.5
Keith Busch
Acked-byQuoted 3 lines · Stefan Hajnoczi
Quoted 3 lines
From: Lu Lina <[email protected]>
Signed-off-by Lu Lina <[email protected]>
Thanks for the fix.
Acked-by Keith Busch <[email protected]>
Quoted 7 lines
Quoted 7 lines
hw/block/nvme.c +1
-0@@ -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 ; }
Stefan Hajnoczi
AppliedQuoted 6 lines · Ting Wang
From: Lu Lina <[email protected]>
Signed-off-by Lu Lina <[email protected]>--- hw/block/nvme.c | 1 + 1 file changed, 1 insertion(+)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan