freebsd-nq/sys/mips/atheros
John Baldwin 068d8643ad Fix various NIC drivers to properly cleanup static DMA resources.
In particular, don't check the value of the bus_dma map against NULL
to determine if either bus_dmamem_alloc() or bus_dmamap_load() succeeded.
Instead, assume that bus_dmamap_load() succeeeded (and thus that
bus_dmamap_unload() should be called) if the bus address for a resource
is non-zero, and assume that bus_dmamem_alloc() succeeded (and thus
that bus_dmamem_free() should be called) if the virtual address for a
resource is not NULL.

In many cases these bugs could result in leaks when a driver was detached.

Reviewed by:	yongari
MFC after:	2 weeks
2014-06-11 14:53:58 +00:00
..
apb.c
apbvar.h
ar71xx_bus_space_reversed.c
ar71xx_bus_space_reversed.h
ar71xx_chip.c
ar71xx_chip.h
ar71xx_cpudef.h
ar71xx_ehci.c
ar71xx_fixup.c
ar71xx_fixup.h
ar71xx_gpio.c Do not configure all pins as outputs as this can lead to short circuits when 2014-05-10 13:16:04 +00:00
ar71xx_gpiovar.h
ar71xx_machdep.c
ar71xx_ohci.c
ar71xx_pci_bus_space.c
ar71xx_pci_bus_space.h
ar71xx_pci.c
ar71xx_setup.c
ar71xx_setup.h
ar71xx_spi.c
ar71xx_wdog.c
ar71xxreg.h
ar91xx_chip.c
ar91xx_chip.h
ar91xxreg.h
ar724x_chip.c
ar724x_chip.h
ar724x_pci.c
ar724xreg.h
ar933x_chip.c
ar933x_chip.h
ar933x_uart.h
ar933xreg.h
ar934x_chip.c
ar934x_chip.h
ar934x_nfcreg.h
ar934xreg.h
files.ar71xx
if_arge.c Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
if_argevar.h
pcf2123_rtc.c
pcf2123reg.h
std.ar71xx
uart_bus_ar71xx.c
uart_bus_ar933x.c
uart_cpu_ar71xx.c
uart_cpu_ar933x.c
uart_dev_ar933x.c
uart_dev_ar933x.h