From: Wei Yongjun Date: Tue, 7 May 2013 11:50:31 +0000 (+0800) Subject: usb: gadget: fix error return code in configfs_composite_bind() X-Git-Tag: v3.10-rc3~26^2~26^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea77077d1623c6a8d586266cf55c2289360bea3;p=pandora-kernel.git usb: gadget: fix error return code in configfs_composite_bind() Fix to return a negative error code in the go through all configs error handling case instead of 0(usb_add_function() will overwrite ret to 0). Also use error code from usb_gstrings_attach() in all strings init error case instead of -EINVAL. Signed-off-by: Wei Yongjun Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed