diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-10-16 10:50:06 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-29 19:28:12 (GMT) |
commit | 78bf8811f05d10a9ecdbe5f1825a3b9e6b8d8fed (patch) | |
tree | 1a046f17c7433f6b278cf36142dde897649df6fa /arch/s390 | |
parent | 35908a35cc40c44ff009611cd9054b02f37f882b (diff) | |
download | linux-fsl-qoriq-78bf8811f05d10a9ecdbe5f1825a3b9e6b8d8fed.tar.xz |
usb: musb: core: properly free host / device structs in err path
commit 0d2dd7eaed1dac07b266ca2c662ff4a184a3060f upstream.
The patch fixes two issues in the error path cleanup:
- in MUSB_PORT_MODE_DUAL_ROLE mode, if musb_gadget_setup() fails we
never cleanup the host struct earlier allocated.
- if musb_init_debugfs() or sysfs_create_group() fails, then we never
free the host part initialization, only device part.
Cc: Daniel Mack <zonque@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions