Author: Felipe Balbi <felipe.balbi@linux.intel.com> Coccinelle caught this instance of us kfree()ing devm-allocated memory. The solution is just to not do anything in our gadget_release. Signed-off-by: Felipe Balbi — drivers/usb/gadget/udc/pch_udc.c | 14 +————- 1 file changed, 1 insertion(+), 13 deletions(-) diff –git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index b2b70d4..ebc51ec 100644 — a/drivers/usb/gadget/udc/pch_udc.c +++ b/drivers/usb/gadget/udc/pch_udc.c @@ -2835,17 +2835,6 @@ …
Privacy Overview
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.