On Fri, 19 Jun 2015, Stefan Hajnoczi wrote:
From: Lu Lina <[email protected]>

Signed-off-by: Lu Lina <[email protected]>

Thanks for the fix.

Acked-by: Keith Busch <[email protected]>

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