mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
068d8643ad
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 |
||
---|---|---|
.. | ||
cfi_bus_econa.c | ||
econa_machdep.c | ||
econa_reg.h | ||
econa_var.h | ||
econa.c | ||
ehci_ebus.c | ||
files.econa | ||
if_ece.c | ||
if_ecereg.h | ||
if_ecevar.h | ||
ohci_ec.c | ||
std.econa | ||
timer.c | ||
uart_bus_ec.c | ||
uart_cpu_ec.c |