diff options
author | 2013-10-16 12:50:06 +0200 | |
---|---|---|
committer | 2013-10-17 11:30:33 -0500 | |
commit | 0d2dd7eaed1dac07b266ca2c662ff4a184a3060f (patch) | |
tree | fb1c33727d8e993a6acdff2b798fb1c81e929492 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usb: gadget: f_mass_storage: style corrections, cleanup & simplification (diff) | |
download | linux-dev-0d2dd7eaed1dac07b266ca2c662ff4a184a3060f.tar.xz linux-dev-0d2dd7eaed1dac07b266ca2c662ff4a184a3060f.zip |
usb: musb: core: properly free host / device structs in err path
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: 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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions