]> git.baikalelectronics.ru Git - kernel.git/commit
usb: bdc: Fix an error handling path in 'bdc_probe()' when no suitable DMA config...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 18 Aug 2021 19:32:38 +0000 (21:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 11:34:52 +0000 (13:34 +0200)
commit78926001d39b96bd7a1b05aa7e380fc82cdc2c35
tree6c13255c93629ada396c8e9292e64307e19dd6fb
parent1695647f0e15b32cce6265099eea7070a76dba0a
usb: bdc: Fix an error handling path in 'bdc_probe()' when no suitable DMA config is available

If no suitable DMA configuration is available, a previous 'bdc_phy_init()'
call must be undone by a corresponding 'bdc_phy_exit()' call.

Branch to the existing error handling path instead of returning
directly.

Fixes: a9d8488adc8c ("usb: bdc: Add support for USB phy")
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/0c5910979f39225d5d8fe68c9ab1c147c68ddee1.1629314734.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/bdc/bdc_core.c