]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: audio: Fix a missing error return value in audio_bind()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 May 2020 10:47:07 +0000 (12:47 +0200)
committerFelipe Balbi <balbi@kernel.org>
Sat, 9 May 2020 08:05:02 +0000 (11:05 +0300)
commita70e2a554b6198a93a16bdd8cca7e1c235b80802
tree9be8dd75cbaefad4776d12c0abc490ad0863e3ed
parent5aa431f67d473fdf5f95b0c230d32503060e8f19
usb: gadget: audio: Fix a missing error return value in audio_bind()

If 'usb_otg_descriptor_alloc()' fails, we must return an error code, not 0.

Fixes: e10f6c2e31f5 ("usb: gadget: audio: allocate and init otg descriptor by otg capabilities")
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/legacy/audio.c