David Brownell wrote:
David T Hollis wrote:
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?
Maybe there should be a few driver-defined bits in urb->transfer_flags,
to help distinguish such cases? We have plenty of unused ones.
- Dave
It looks like another option I have is to use the data field in the
struct usbnet. It provides 20 bytes of storage, I only need 8. Or I
use a transfer_flag, either way should work out.
-------------------------------------------------------
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