]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't destroy bus_dma maps created by bus_dmamem_alloc(). In some cases,
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 10 Jun 2014 20:25:45 +0000 (20:25 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 10 Jun 2014 20:25:45 +0000 (20:25 +0000)
commitf07894dbde46f1175eea9107236b97a29f242496
treefce070802b2d12919f979d51576d5aad6077a6c2
parent5ebc578ba69254127ec057ae0e575ab6c3c57ad2
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
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