freebsd-nq/sys/mips
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
..
adm5120 Introduce grab and ungrab upcalls. When the kernel desires to grab the 2014-01-19 19:36:11 +00:00
alchemy
atheros Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
beri After r264897 restore the ability to add bootoptions from FDT for 2014-04-29 07:48:07 +00:00
cavium Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
conf Hook the ISP/SAF1761 driver into MIPS kernel builds. 2014-05-29 10:46:09 +00:00
gxemul
idt Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
include Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4 2014-04-01 14:46:11 +00:00
malta Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
mips Commit the rest of the changes that were intended to be part of r266826. 2014-05-29 01:42:22 +00:00
nlm Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
rmi Remove IPX support. 2014-03-14 02:58:48 +00:00
rt305x Introduce grab and ungrab upcalls. When the kernel desires to grab the 2014-01-19 19:36:11 +00:00
sentry5
sibyte