Hi tech@, Here is a diff to add sizes for free() in auixp(4).
Similar diff to the ones previously sent for other audio drivers. Comments? OK? Index: sys/dev/pci/auixp.c =================================================================== RCS file: /cvs/src/sys/dev/pci/auixp.c,v retrieving revision 1.40 diff -u -p -r1.40 auixp.c --- sys/dev/pci/auixp.c 3 Sep 2018 05:37:32 -0000 1.40 +++ sys/dev/pci/auixp.c 13 Dec 2019 09:46:27 -0000 @@ -382,7 +382,7 @@ auixp_malloc(void *hdl, int direction, s /* get us a dma buffer itself */ error = auixp_allocmem(sc, size, 16, dma); if (error) { - free(dma, pool, 0); + free(dma, pool, sizeof(*dma)); printf("%s: auixp_malloc: not enough memory\n", sc->sc_dev.dv_xname); return NULL; @@ -415,7 +415,7 @@ auixp_free(void *hdl, void *addr, int po SLIST_REMOVE(&sc->sc_dma_list, dma, auixp_dma, dma_chain); auixp_freemem(sc, dma); - free(dma, pool, 0); + free(dma, pool, sizeof(*dma)); return; } } @@ -537,7 +537,7 @@ auixp_allocate_dma_chain(struct auixp_so if (error) { printf("%s: can't malloc dma descriptor chain\n", sc->sc_dev.dv_xname); - free(dma, M_DEVBUF, 0); + free(dma, M_DEVBUF, sizeof(*dma)); return ENOMEM; }