X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fiommu%2Fdma-iommu.c;h=6f0df629353fd18ea92ba9458ac10444b8d51ae6;hb=44d7d3b0d1cdb2119dba33bbedd602ce30528d6c;hp=98ba927aee1a6903c7bc8619e41160618292f952;hpb=3fdacf402bb2221c77940f68ef56a0214c098ee0;p=linux-2.6-microblaze.git diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index 98ba927aee1a..6f0df629353f 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@ -768,6 +768,7 @@ static void iommu_dma_free_noncontiguous(struct device *dev, size_t size, __iommu_dma_unmap(dev, sgt->sgl->dma_address, size); __iommu_dma_free_pages(sh->pages, PAGE_ALIGN(size) >> PAGE_SHIFT); sg_free_table(&sh->sgt); + kfree(sh); } #endif /* CONFIG_DMA_REMAP */