fix another bus_dma leak due to not having a size param for our bus_dma

allocation function.  With this patch, it prevents continous growth of
the devbuf memory pool.

Tested with ssh <host> dd of=/dev/null < /dev/zero and vmstat -m | grep devbuf
This commit is contained in:
jmg 2003-07-29 05:07:37 +00:00
parent 763ea6d84f
commit 6c5f68638f

View File

@ -183,6 +183,8 @@ usb_block_allocmem(bus_dma_tag_t tag, size_t size, size_t align,
usbmem_callback, p, 0))
goto memfree;
/* XXX - override the tag, ok since we never free it */
p->tag = tag;
*dmap = p;
return (USBD_NORMAL_COMPLETION);