mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
USB: gadget: legacy: fix return error code in acm_ms_bind()
commitc91d3a6bcaupstream. 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>
This commit is contained in:
parent
9cc6bf99c6
commit
c92e6831dc
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue