X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Fusb_io.c;h=a1bf50b1c691fcf290bee35150fc6dddb8a7f7cd;hb=d8bf9f747a87c3c1d23461c155ef90b7fc148a21;hp=745e8a6440298076e8de58c62bf4d2b86a943ac2;hpb=3bcfc9ded1d44d1fbec95f73b5894e26f498b73d;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/Core/usb_io.c b/KernelLand/Modules/USB/Core/usb_io.c index 745e8a64..a1bf50b1 100644 --- a/KernelLand/Modules/USB/Core/usb_io.c +++ b/KernelLand/Modules/USB/Core/usb_io.c @@ -11,16 +11,7 @@ #include "usb.h" #include "usb_lowlevel.h" #include - -typedef struct sAsyncOp tAsyncOp; - -struct sAsyncOp -{ - tAsyncOp *Next; - tUSBEndpoint *Endpt; - int Length; - void *Data; -}; +#include "usb_async.h" // === PROTOTYPES === void USB_ReadDescriptor(tUSBInterface *Iface, int Type, int Index, int Length, void *Data); @@ -115,6 +106,8 @@ void USB_AsyncThread(void *Unused) iface->Driver->Endpoints[op->Endpt->EndpointIdx].DataAvail( iface, op->Endpt->EndpointIdx, op->Length, op->Data); + + free(op); } }