mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
USB: gpio_vbus: put a missing regulator_put() on error
Note that regulator_put() doesn't care about whether ->vbus_draw is valid or not. Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
934ccec4da
commit
a6dc9cf76b
@ -319,6 +319,7 @@ static int __init gpio_vbus_probe(struct platform_device *pdev)
|
||||
|
||||
return 0;
|
||||
err_otg:
|
||||
regulator_put(gpio_vbus->vbus_draw);
|
||||
free_irq(irq, pdev);
|
||||
err_irq:
|
||||
if (gpio_is_valid(pdata->gpio_pullup))
|
||||
|
Loading…
Reference in New Issue
Block a user