usb: gadget: mv_udc_core: fix phy_regs I/O memory leak
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sun, 19 Jul 2015 16:13:28 +0000 (23:13 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:05 +0000 (09:29 -0700)
commit35dff3a0bd57b32df5d7990fddbf4e54d96a4621
tree10a75311725682be19004318664b8a2aeedd5c64
parent4db43b5199062e0c6f0424462ce8c4978bcecf15
usb: gadget: mv_udc_core: fix phy_regs I/O memory leak

commit 53e20f2eb161fbe9eea28b54dccc870cec94eca2 upstream.

There was an omission in transition to devm_xxx resource handling.
iounmap(udc->phy_regs) were removed, but ioremap() was left
without devm_.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 3517c31a8ece6 ("usb: gadget: mv_udc: use devm_xxx for probe")
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/mv_udc_core.c