In the Linux kernel, the following vulnerability has been resolved: serial: arcuart: fix ofiomap leak in arc_serial_probe Smatch reports: drivers/tty/serial/arcuart.c:631 arcserialprobe() warn: 'port->membase' from ofiomap() not released on lines: 631. In arcserialprobe(), if uartaddoneport() fails, port->membase is not released, which would cause a resource leak. To fix this, I replace ofiomap with devmplatformioremap_resource.