From: Daniel Lichtenberger Date: Thu, 28 Oct 2010 21:20:12 +0000 (+0200) Subject: Staging: rtl8192e: fix IOMMU memory leak X-Git-Tag: v2.6.37-rc2~22^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43f88d530ec656d9b556fb0d127b30757b1c3d35;p=pandora-kernel.git Staging: rtl8192e: fix IOMMU memory leak Unmap the rx buffer before mapping the new one in rtl8192_rx. Failing to do so quickly exhausts the IOMMU memory during downloads: [...] DMA: Out of SW-IOMMU space for 9100 bytes at device ... Using "iommu=off mem=4g" also fixes the problem because then pci_map_single does not allocate memory. Tested on my personal laptop with a RTL8192E device. Without this patch the kernel quickly runs out of IOMMU memory (downloading 5 MB of data is sufficient to trigger it), with this patch applied I haven't experienced any issues so far. Signed-off-by: Daniel Lichtenberger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed