summaryrefslogtreecommitdiffstats
path: root/lib/libdwarf/dwarf_init.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-08-29 16:58:51 +0000
committeradrian <adrian@FreeBSD.org>2012-08-29 16:58:51 +0000
commit13dd70acbfc7697f51dd422aca571541729fd167 (patch)
tree6188fd949865c28565b61c0d851395fb348a86e5 /lib/libdwarf/dwarf_init.c
parent9f542929d1b68240302a302a121e7c5b57b9a315 (diff)
downloadFreeBSD-src-13dd70acbfc7697f51dd422aca571541729fd167.zip
FreeBSD-src-13dd70acbfc7697f51dd422aca571541729fd167.tar.gz
There's no nede to allocate a DMA map just before calling bus_dmamem_alloc().
In fact, bus_dmamem_alloc() happily NULLs the dmat pointer passed in, before replacing it with its own. This fixes a MIPS crash when kldload'ing if_ath/if_ath_pci - bus_dmamap_destroy() was passed in a NULL dmat pointer and was doing all kinds of very bad things. Reviewed by: scottl
Diffstat (limited to 'lib/libdwarf/dwarf_init.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud