commit | e27d4b30b71c66986196d8a1eb93cba9f602904a | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Thu May 07 05:13:23 2020 +0000 |
committer | Felipe Balbi <balbi@kernel.org> | Sat May 09 11:05:08 2020 +0300 |
tree | 351be7a593c899d1acf53e199bee4ab071788d00 | |
parent | e8f7f9e3499a6d96f7f63a4818dc7d0f45a7783b [diff] |
usb: gadget: legacy: fix error return code in gncm_bind() If 'usb_otg_descriptor_alloc()' fails, we must return a negative error code -ENOMEM, not 0. Fixes: 1156e91dd7cc ("usb: gadget: ncm: allocate and init otg descriptor by otg capabilities") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>