linux/drivers/staging/rtl8192e
Daniel Lichtenberger 43f88d530e 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 <daniel.lichtenberger@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-11-09 14:05:23 -08:00
..
ieee80211
dot11d.h Staging: rtl8192e: Convert macros to inline functions 2010-09-29 23:15:19 -07:00
ieee80211_crypt.h
ieee80211.h
Kconfig
Makefile Staging: rtl8192e: Makefile: cleaned up Makefile cflag lines 2010-10-05 11:56:38 -07:00
r819xE_cmdpkt.c Staging: rtl8192e: Less verbose function headers 2010-09-08 21:21:26 -07:00
r819xE_cmdpkt.h
r819xE_firmware.c Staging: rtl8192e: Less verbose function headers 2010-09-08 21:21:26 -07:00
r819xE_phy.c
r819xE_phy.h
r819xE_phyreg.h
r8180_93cx6.c staging: rtl8192e: Remove empty function force_pci_posting() 2010-09-21 10:57:00 -07:00
r8180_93cx6.h
r8190_rtl8256.c
r8190_rtl8256.h
r8192_pm.c
r8192_pm.h
r8192E_core.c Staging: rtl8192e: fix IOMMU memory leak 2010-11-09 14:05:23 -08:00
r8192E_dm.c Staging: rtl8192e: Less verbose function headers 2010-09-08 21:21:26 -07:00
r8192E_dm.h
r8192E_hw.h
r8192E_wx.c
r8192E_wx.h
r8192E.h staging: rtl8192e: Remove empty function force_pci_posting() 2010-09-21 10:57:00 -07:00