1
0
Fork 0
alistair23-linux/drivers/usb/phy
Christophe JAILLET e8a03e73cd usb: phy: twl6030-usb: Fix a resource leak in an error handling path in 'twl6030_usb_probe()'
[ Upstream commit f058764d19 ]

A call to 'regulator_get()' is hidden in 'twl6030_usb_ldo_init()'. A
corresponding put must be performed in the error handling path, as
already done in the remove function.

While at it, also move a 'free_irq()' call in the error handling path in
order to be consistent.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-03 08:21:12 +02:00
..
Kconfig usb: gadget: fsl: fix link error against usb-gadget module 2019-05-03 09:13:47 +03:00
Makefile usb: phy: Add Kconfig entry for Tegra PHY driver 2018-04-23 09:50:57 +02:00
of.c
phy-ab8500-usb.c usb: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:29:18 +02:00
phy-am335x-control.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
phy-am335x-control.h
phy-am335x.c usb: phy: am335x: fix race condition in _probe 2019-01-28 15:31:43 +02:00
phy-fsl-usb.c USB: Changes for v5.4 merge window 2019-09-02 19:20:57 +02:00
phy-fsl-usb.h
phy-generic.c
phy-generic.h
phy-gpio-vbus-usb.c
phy-isp1301-omap.c
phy-isp1301.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
phy-keystone.c
phy-mv-usb.c USB: phy: mv-usb: convert platform driver to use dev_groups 2019-08-09 07:55:44 +02:00
phy-mv-usb.h
phy-mxs-usb.c usb: phy: phy-mxs-usb: add imx7ulp support 2019-07-03 10:56:19 +03:00
phy-omap-otg.c
phy-tahvo.c USB: phy: tahvo: convert platform driver to use dev_groups 2019-08-09 07:55:44 +02:00
phy-tegra-usb.c
phy-twl6030-usb.c usb: phy: twl6030-usb: Fix a resource leak in an error handling path in 'twl6030_usb_probe()' 2020-06-03 08:21:12 +02:00
phy-ulpi-viewport.c
phy-ulpi.c
phy.c