David Brownell wrote:
These are the USB leaks (usb-midi, hiddev) from
http://marc.theaimsgroup.com/?l=linux-kernel&m=106368725910864&w=2
In usb-midi, and hiddev.
- Dave
In looking at these leaks, I took a look into my ax8817x code in
usbnet. It looks like it's ok for the most part with one exception. In
ax8817x_set_multicast, I allocate memory for the multicast filter list
which is then used in an async call. That memory isn't freed in the
callback though the control request and URB are. The easy fix is to
just free the urb->transfer_buffer which would be ok for now, but that
seems like a tacky thing to do with ax8817x_write_async_cmd since there
could be future invocations where I'm not using a temporary buffer that
should be freed after the call. Any suggestions on a clean way to free
that memory?
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel