[PATCH 04/23] USB: gadget: fsl_udc: Warn about freeing queued descriptors

Sascha Hauer s.hauer at pengutronix.de
Mon Jul 21 08:14:28 PDT 2014


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/usb/gadget/fsl_udc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/gadget/fsl_udc.c b/drivers/usb/gadget/fsl_udc.c
index 3cfeb8a..5266fb6 100644
--- a/drivers/usb/gadget/fsl_udc.c
+++ b/drivers/usb/gadget/fsl_udc.c
@@ -1047,6 +1047,11 @@ static void fsl_free_request(struct usb_ep *_ep, struct usb_request *_req)
 
 	req = container_of(_req, struct fsl_req, req);
 
+	if (!list_empty(&req->queue)) {
+		printk("%s: Freeing queued request\n", __func__);
+		dump_stack();
+	}
+
 	if (_req)
 		kfree(req);
 }
-- 
2.0.1




More information about the barebox mailing list