From: Sebastian Andrzej Siewior Date: Fri, 3 Jun 2011 17:50:48 +0000 (+0200) Subject: usb/renesas_usbhs: free uep on removal X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3af51ac9c0889a188aaa3defe5134ef97c80d7c5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git usb/renesas_usbhs: free uep on removal Can't find evidence that this is actually done. Cc: Kuninori Morimoto Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 206cfabc9286..547486ccd059 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -1380,5 +1380,6 @@ void __devexit usbhs_mod_gadget_remove(struct usbhs_priv *priv) { struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv); + kfree(gpriv->uep); kfree(gpriv); }