Don't destroy bus_dma maps created by bus_dmamem_alloc(). In some cases,
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Jun 2014 20:25:45 +0000 (20:25 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 10 Jun 2014 20:25:45 +0000 (20:25 +0000)
commit895bc228cf137b86b449ab9a5a4227f06d5c25c0
treefce070802b2d12919f979d51576d5aad6077a6c2
parentabfd93d6217d57d5b424a1ce27f7971252adffc7
Don't destroy bus_dma maps created by bus_dmamem_alloc().  In some cases,
don't create a map before calling bus_dmamem_alloc() (such maps were
leaked).  It is believed that the extra destroy of the map was generally
harmless since bus_dmamem_alloc() often uses special maps for which
bus_dmamap_destroy() is a no-op (e.g. on x86).

Reviewed by: scottl

git-svn-id: svn://svn.freebsd.org/base/head@267340 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
16 files changed:
sys/arm/versatile/versatile_clcd.c
sys/dev/advansys/adwcam.c
sys/dev/an/if_an.c
sys/dev/ata/ata-dma.c
sys/dev/buslogic/bt.c
sys/dev/dpt/dpt_scsi.c
sys/dev/hifn/hifn7751.c
sys/dev/malo/if_malo.c
sys/dev/malo/if_malohal.c
sys/dev/mwl/if_mwl.c
sys/dev/mwl/mwlhal.c
sys/dev/safe/safe.c
sys/dev/sym/sym_hipd.c
sys/dev/trm/trm.c
sys/dev/tx/if_tx.c
sys/dev/ubsec/ubsec.c