]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: fix error return code in configfs_composite_bind()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 11:50:31 +0000 (19:50 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 15 May 2013 14:25:49 +0000 (17:25 +0300)
commit83349753fc9c3fca328a630d276d2adf0d1cd6d8
tree0cdef3493a851372e67e599cabfb5a8db0e9236b
parent66b688444beae9597085b5ee5a187d109504dfe4
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/configfs.c