]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
usb/renesas_usbhs: free uep on removal
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 3 Jun 2011 17:50:48 +0000 (19:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 6 Jun 2011 23:28:04 +0000 (16:28 -0700)
Can't find evidence that this is actually done.

Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/renesas_usbhs/mod_gadget.c

index 206cfabc92863e0d409e8c76a32bf3129883eeda..547486ccd0592d21a2b2a5ca8bf4480192ffaf73 100644 (file)
@@ -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);
 }