summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2013-10-16 12:50:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-29 11:28:12 -0800
commit78bf8811f05d10a9ecdbe5f1825a3b9e6b8d8fed (patch)
tree1a046f17c7433f6b278cf36142dde897649df6fa /scripts
parent35908a35cc40c44ff009611cd9054b02f37f882b (diff)
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 'scripts')
0 files changed, 0 insertions, 0 deletions