summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2020-05-07 05:13:32 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-20 08:18:51 +0200
commit3655034daad1a4d5b684f3cea6efe0f7eb676d20 (patch)
tree09894002854e8605a61ce171eef3e62fad6d39bf /sound/pci
parentd08742fefe87032910e341b9218b504a7032e14c (diff)
downloadlinux-stable-3655034daad1a4d5b684f3cea6efe0f7eb676d20.tar.gz
linux-stable-3655034daad1a4d5b684f3cea6efe0f7eb676d20.tar.bz2
linux-stable-3655034daad1a4d5b684f3cea6efe0f7eb676d20.zip
usb: gadget: legacy: fix error return code in cdc_bind()
commit e8f7f9e3499a6d96f7f63a4818dc7d0f45a7783b upstream. If 'usb_otg_descriptor_alloc()' fails, we must return a negative error code -ENOMEM, not 0. Fixes: ab6796ae9833 ("usb: gadget: cdc2: 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions