Searched hist:bdf81611e444e8aef21cb05eeae69f694c0c7a39 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | ci_udc.c | bdf81611e444e8aef21cb05eeae69f694c0c7a39 Tue Jun 10 17:02:36 UTC 2014 Stephen Warren <swarren@nvidia.com> usb: ci_udc: fix freeing of ep0 req
ci_ep_alloc_request() avoids allocating multiple request objects for ep0 by keeping a record of the first req allocated for ep0, and always returning that instead of allocating a new req. However, if this req is ever freed, the record of the previous allocation is not cleared, so ci_ep_alloc_request() will keep returning this stale pointer. Fix ci_ep_free_request() to clear the record of the previous allocation.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
|