From: Robert Baldyga Date: Mon, 13 Jul 2015 09:03:50 +0000 (+0200) Subject: usb: gadget: ffs: call functionfs_unbind() if _ffs_func_bind() fails X-Git-Tag: omap-for-v4.3/fixes-merge-window~42^2~35^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55d811211b139ed097ddaf40d173c258f133c130;p=pandora-kernel.git usb: gadget: ffs: call functionfs_unbind() if _ffs_func_bind() fails Function ffs_do_functionfs_bind() calls functionfs_bind() which allocates usb request and increments refcounts. These things needs to be cleaned up by if further steps of initialization fail by calling functionfs_unbind(). Signed-off-by: Robert Baldyga Acked-by: Michal Nazarewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed