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:
parent
38c962e7c4
commit
44de8a989d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user