mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118142
|
@ -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 a new issue