]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerFelipe Balbi <balbi@ti.com>
Mon, 20 Jul 2015 17:57:46 +0000 (12:57 -0500)
commitdd936fc2d55b08f1e20095b91d47595bccd03448
tree9f076161b5f54b4f871f28174260e70077a31242
parent80bd9e36b03f1c9dea18aa25b301f5755216848d
usb: gadget: mv_udc_core: fix phy_regs I/O memory leak

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: 8312c5ccb2e66 ("usb: gadget: mv_udc: use devm_xxx for probe")
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/mv_udc_core.c