From: Sebastian Andrzej Siewior Date: Wed, 16 Oct 2013 10:50:06 +0000 (+0200) Subject: usb: musb: core: properly free host / device structs in err path X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~66^2~22^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d2dd7eaed1dac07b266ca2c662ff4a184a3060f;p=pandora-kernel.git 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 Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed