summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/net2272.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-04-27 22:21:16 +0200
committerFelipe Balbi <balbi@kernel.org>2020-05-09 11:05:08 +0300
commitf058764d19000d98aef72010468db1f69faf9fa0 (patch)
tree2ecfea97f216a1d34d33982024f2b7b050caa58b /drivers/usb/gadget/udc/net2272.c
parent95cd7dc47abd71d1a0c9c43594ff2fa32552f46c (diff)
usb: phy: twl6030-usb: Fix a resource leak in an error handling path in 'twl6030_usb_probe()'
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>
Diffstat (limited to 'drivers/usb/gadget/udc/net2272.c')
0 files changed, 0 insertions, 0 deletions