]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
usb: phy: tahvo: fix error handling in tahvo_usb_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 20 Oct 2017 22:02:07 +0000 (01:02 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Oct 2017 09:51:12 +0000 (12:51 +0300)
commitce035409bfa892a2fabb89720b542e1b335c3426
tree029e9766f6b3861e0b20e6c36fa77a84a332a642
parentfdb5e4fa1aedb91d900cd7719a0bfb92b4122c53
usb: phy: tahvo: fix error handling in tahvo_usb_probe()

If devm_extcon_dev_allocate() fails, we should disable clk before return.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 860d2686fda7 ("usb: phy: tahvo: Use devm_extcon_dev_[allocate|register]() and replace deprecated API")
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/phy/phy-tahvo.c