mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-31 22:15:38 +00:00
msm_serial: add missing iounmap() on error in msm_request_port()
Add the missing iounmap() before return from msm_request_port() in the error handling case. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Ivan T. Ivanov <iivanov@mm-sol.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
37e1ceb179
commit
195be84aaa
@ -637,7 +637,7 @@ static int msm_request_port(struct uart_port *port)
|
||||
if (!request_mem_region(gsbi_resource->start, size,
|
||||
"msm_serial")) {
|
||||
ret = -EBUSY;
|
||||
goto fail_release_port;
|
||||
goto fail_release_port_membase;
|
||||
}
|
||||
|
||||
msm_port->gsbi_base = ioremap(gsbi_resource->start, size);
|
||||
@ -651,6 +651,8 @@ static int msm_request_port(struct uart_port *port)
|
||||
|
||||
fail_release_gsbi:
|
||||
release_mem_region(gsbi_resource->start, size);
|
||||
fail_release_port_membase:
|
||||
iounmap(port->membase);
|
||||
fail_release_port:
|
||||
release_mem_region(port->mapbase, size);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user