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:
John-Mark Gurney 2003-07-29 05:07:37 +00:00
parent 38c962e7c4
commit 44de8a989d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118142

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);