commit | 05b9ca47c3839b244295e30c3697a8de835efe02 | [log] [tgz] |
---|---|---|
author | Manu Gautam <mgautam@codeaurora.org> | Fri Oct 14 17:12:40 2011 +0530 |
committer | Manu Gautam <mgautam@codeaurora.org> | Fri Oct 14 17:12:40 2011 +0530 |
tree | 23f86bd2dd4301b2844975dee8c551872e4c1ae6 | |
parent | d9609ac7083e94d098bdbef09912bf4dbe22ec94 [diff] |
USB: gadget: android: Do not enable USB if usb_add_config fails usb_add_config may fail while calling individual function's bind_configs. This can happen if userspace tries to enable USB before configuring the functions' parameters properly. Some examples of such parameters are: DIAG transports and number of RMNET instances. Change-Id: I18380f2c6ddf4add0af66a1de62b0c5ae76ac6e4 Signed-off-by: Manu Gautam <mgautam@codeaurora.org>