linux_dsm_epyc7002/drivers/usb/gadget
Yang Yingliang c92e6831dc USB: gadget: legacy: fix return error code in acm_ms_bind()
commit c91d3a6bcaa031f551ba29a496a8027b31289464 upstream.

If usb_otg_descriptor_alloc() failed, it need return ENOMEM.

Fixes: 578aa8a2b1 ("usb: gadget: acm_ms: allocate and init otg descriptor by otg capabilities")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201117092955.4102785-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 20:18:21 +01:00
..
function usb: gadget: u_ether: Fix MTU size mismatch with RX packet size 2021-01-12 20:18:21 +01:00
legacy USB: gadget: legacy: fix return error code in acm_ms_bind() 2021-01-12 20:18:21 +01:00
udc USB: Gadget: dummy-hcd: Fix shift-out-of-bounds bug 2021-01-12 20:18:20 +01:00
composite.c usb: fix kernel-doc markups 2020-10-28 13:18:56 +01:00
config.c
configfs.c usb: gadget: enable super speed plus 2021-01-12 20:18:17 +01:00
configfs.h
epautoconf.c
functions.c
Kconfig usb: gadget: select CONFIG_CRC32 2021-01-12 20:18:20 +01:00
Makefile Revert "usb:gadget Separated decoding functions from dwc3 driver." 2019-07-04 13:02:09 +02:00
u_f.c
u_f.h USB: gadget: u_f: Unbreak offset calculation in VLAs 2020-08-27 09:25:06 +02:00
u_os_desc.h
usbstring.c usb: gadget: fix langid kernel-doc warning in usbstring.c 2020-07-09 10:13:07 +03:00