On 23.09.22 06:25, Peilin Ye wrote: Hi,
I think we may have similar issues at other usb_scuttle_anchored_urbs() call sites. Since urb->context is (void *), should we pass a "destructor" callback to usb_scuttle_anchored_urbs(), or replace this function with usb_get_from_anchor() loops like this patch does?
please introduce a new function with an additional parameter for that, so that we do not need to touch the correct usages. Regards Oliver