freebsd-skq/sys/mips/idt
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
..
files.idt
idt_machdep.c Merge from vmobj-rwlock branch: 2013-02-26 01:00:11 +00:00
idtpci.c - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
idtreg.h
if_kr.c Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
if_krreg.h
obio.c Devices that rely on hints or identify routines for discovery need to 2013-10-29 14:07:31 +00:00
obiovar.h
std.idt o) Use ABI, not ISA_* options, to determine whether to compile bits if libkern 2012-03-12 21:25:32 +00:00
uart_bus_rc32434.c
uart_cpu_rc32434.c