aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-pci-wrap.c
diff options
context:
space:
mode:
authorKe Zhang <[email protected]>2023-04-28 11:16:36 +0800
committerGreg Kroah-Hartman <[email protected]>2023-05-13 19:55:46 +0900
commit8ab5fc55d7f65d58a3c3aeadf11bdf60267cd2bd (patch)
tree94ecd235d2b23dbb97f2db870d1fa071ca86e00e /drivers/usb/cdns3/cdns3-pci-wrap.c
parentf16182ed9d8430adfab77f5929c23756c94b0230 (diff)
serial: arc_uart: fix of_iomap leak in `arc_serial_probe`
Smatch reports: drivers/tty/serial/arc_uart.c:631 arc_serial_probe() warn: 'port->membase' from of_iomap() not released on lines: 631. In arc_serial_probe(), if uart_add_one_port() fails, port->membase is not released, which would cause a resource leak. To fix this, I replace of_iomap with devm_platform_ioremap_resource. Fixes: 8dbe1d5e09a7 ("serial/arc: inline the probe helper") Signed-off-by: Ke Zhang <[email protected]> Reviewed-by: Dongliang Mu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions