Re: device driver memory leak in 5.1-20030726?

From: John-Mark Gurney <gurney_j_at_efn.org>
Date: Sun, 27 Jul 2003 22:46:46 -0700
Scott Long wrote this message on Sun, Jul 27, 2003 at 23:33 -0600:
> John-Mark Gurney wrote:
> 
> >It may be leaking, but it won't be leaking devbuf memory.  The only
> >thing that is in usb (in dev/usb) that uses M_DEVBUF is ukbd.
> 
> bus_dma_tag_create() allocates out of M_DEVBUF.  Could it be that tags
> are being created and never destroyed?

Ugh, yes, it does. :(  What is the point of having malloc areas if
everything uses them?   I just checked and about every driver allocates
memory under DEVBUF.  Is there some reason why we don't allocate more
malloc types to make this type of thing more easy to debug?

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Sun Jul 27 2003 - 20:46:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:16 UTC