Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: usb multi gadget kernel crush

$
0
0

Sorry, but please try the following patch instead, which I remembered should be the correct fix. The previous one was just my early hack. The following patch was taken from the mainline kernel.

diff --git a/drivers/usb/gadget/f_rndis.c b/drivers/usb/gadget/f_rndis.c index c05c6fb..d214927 100644 --- a/drivers/usb/gadget/f_rndis.c +++ b/drivers/usb/gadget/f_rndis.c @@ -500,6 +500,7 @@ rndis_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)                         if (buf) {                                 memcpy(req->buf, buf, n);                                 req->complete = rndis_response_complete; +                               req->context = rndis;                                 rndis_free_response(rndis->config, buf);                                 value = n;                         } 

Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>