git: if_iwm - Fix iwm_dma_contig_free(). dma->map is always NULL here.
Imre Vadasz
ivadasz at crater.dragonflybsd.org
Thu Jun 9 17:32:01 PDT 2016
commit ef2b29a7ba6ca8a9d2c82ab591c0622227ff84cb
Author: Imre Vadász <imre at vdsz.com>
Date: Fri Jun 10 02:04:31 2016 +0200
if_iwm - Fix iwm_dma_contig_free(). dma->map is always NULL here.
* When bus_dmamem_alloc is used, the bus_dmamap_t is set to NULL, so we
were never actually freeing any dma memory allocations done via
iwm_dma_contig_alloc(). So we should check dma->vaddr instead of
dma->map here.
* This reduces dma memory leakage (as displayed by
"sysctl vm.dma_free_pages") to 11 pages for each if_iwm module
load/unload cycle.
Summary of changes:
sys/dev/netif/iwm/if_iwm.c | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ef2b29a7ba6ca8a9d2c82ab591c0622227ff84cb
--
DragonFly BSD source repository
More information about the Commits
mailing list