author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | |
Thu, 11 Dec 2014 16:39:50 +0000 (17:39 +0100) | ||
committer | Sekhar Nori <nsekhar@ti.com> | |
Mon, 15 Dec 2014 06:34:41 +0000 (12:04 +0530) | ||
commit | ab03af2833c1d215c34ee427bfe818487597a25a | |
tree | c7b38024e5edd509964a68f5ace10dc60bb72ef3 | tree | snapshot (tar.xz tar.gz zip) |
parent | 223c3e18cf68062b19ab148ce0276d6c329d2293 | commit | diff |
usb: musb: stuff leak of struct usb_hcd
since the split of host+gadget mode in commit 74c2e9360058 ("usb: musb:
factor out hcd initalization") we leak the usb_hcd struct. We call now
musb_host_cleanup() which does basically usb_remove_hcd() and also sets
the hcd variable to NULL. Doing so makes the finall call to
musb_host_free() basically a nop and the usb_hcd remains around for ever
without anowner.
This patch drops that NULL assignment for that reason.
Fixes: 74c2e9360058 ("usb: musb: factor out hcd initalization")
Cc: stable@vger.kernel.org
Cc: Daniel Mack <zonque@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
since the split of host+gadget mode in commit 74c2e9360058 ("usb: musb:
factor out hcd initalization") we leak the usb_hcd struct. We call now
musb_host_cleanup() which does basically usb_remove_hcd() and also sets
the hcd variable to NULL. Doing so makes the finall call to
musb_host_free() basically a nop and the usb_hcd remains around for ever
without anowner.
This patch drops that NULL assignment for that reason.
Fixes: 74c2e9360058 ("usb: musb: factor out hcd initalization")
Cc: stable@vger.kernel.org
Cc: Daniel Mack <zonque@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/usb/musb/musb_host.c | diff | blob | history |