]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: stuff leak of struct usb_hcd
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 11 Dec 2014 17:14:18 +0000 (18:14 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 22 Dec 2014 16:36:24 +0000 (10:36 -0600)
commit0edc66a344241bd9a00a45dcf2cd50c19dc0e36b
treea8c9f2d44f57b3d1fd689b2ac6494e7cb55d36cd
parentb82e6bd7e1ba58ca8560c24183a9d93068546615
usb: musb: stuff leak of struct usb_hcd

since the split of host+gadget mode in commit 306c4d8cd7f7 ("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: 306c4d8cd7f7 ("usb: musb: factor out hcd initalization")
Cc: <stable@vger.kernel.org> # v3.11+
Cc: Daniel Mack <zonque@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_host.c