Commit 793afb83 authored by Federico Vaga's avatar Federico Vaga

dma: fix memory leak in DMA free

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 62ce46b9
......@@ -173,6 +173,7 @@ EXPORT_SYMBOL(zio_dma_alloc_sg);
*/
void zio_dma_free_sg(struct zio_dma_sgt *zdma)
{
sg_free_table(&zdma->sgt);
kfree(zdma->sg_blocks);
kfree(zdma);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment