qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] nvme: Fix memleak in nvme_dma_read_prp


From: Keith Busch
Subject: Re: [Qemu-devel] [PATCH] nvme: Fix memleak in nvme_dma_read_prp
Date: Fri, 19 Jun 2015 14:54:16 +0000 (UTC)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

On Fri, 19 Jun 2015, Stefan Hajnoczi wrote:
From: Lu Lina <address@hidden>

Signed-off-by: Lu Lina <address@hidden>

Thanks for the fix.

Acked-by: Keith Busch <address@hidden>

@@ -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;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]