The patch titled ioremap balanced with iounmap for drivers/serial/mpc52xx_uart.c has been removed from the -mm tree. Its filename is ioremap-balanced-with-iounmap-for-drivers-serial-mpc52xx_uart.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: ioremap balanced with iounmap for drivers/serial/mpc52xx_uart.c From: Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/serial/mpc52xx_uart.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff -puN drivers/serial/mpc52xx_uart.c~ioremap-balanced-with-iounmap-for-drivers-serial-mpc52xx_uart drivers/serial/mpc52xx_uart.c --- a/drivers/serial/mpc52xx_uart.c~ioremap-balanced-with-iounmap-for-drivers-serial-mpc52xx_uart +++ a/drivers/serial/mpc52xx_uart.c @@ -338,14 +338,23 @@ mpc52xx_uart_release_port(struct uart_po static int mpc52xx_uart_request_port(struct uart_port *port) { + int err; + if (port->flags & UPF_IOREMAP) /* Need to remap ? */ port->membase = ioremap(port->mapbase, MPC52xx_PSC_SIZE); if (!port->membase) return -EINVAL; - return request_mem_region(port->mapbase, MPC52xx_PSC_SIZE, + err = request_mem_region(port->mapbase, MPC52xx_PSC_SIZE, "mpc52xx_psc_uart") != NULL ? 0 : -EBUSY; + + if (err && (port->flags & UPF_IOREMAP)) { + iounmap(port->membase); + port->membase = NULL; + } + + return err; } static void _ Patches currently in -mm which might be from amol@xxxxxxxxxxxxxxxxxxx are origin.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html