-
由 Dan Carpenter 提交于
stable inclusion from stable-5.10.15 commit c8e1dabc1e0536c1618b7aac7a07d532095834a0 bugzilla: 48167 -------------------------------- commit 3e1f4a2e upstream. This code should return -ENOMEM if the allocation fails but it currently returns success. Fixes: 9b95236e ("usb: gadget: ether: allocate and init otg descriptor by otg capabilities") Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/YBKE9rqVuJEOUWpW@mwanda Cc: stable <stable@vger.kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
d0f77b76