Wei Yongjun e27d4b30b7 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>
2020-05-09 11:05:08 +03:00
..
2020-04-16 14:59:49 +02:00
2019-10-14 07:09:59 +02:00
2020-01-17 07:52:26 +01:00
2019-09-03 19:00:39 +02:00
2019-09-02 19:20:57 +02:00