From: Alexander Beregalov Date: Fri, 2 Jan 2009 13:49:32 +0000 (+0000) Subject: fix for tty-serial-move-port X-Git-Tag: v2.6.29-rc1~545^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bc3256288b8ff9787623805e53cf7c6d5a2b4591;p=linux-2.6-omap-h63xx.git fix for tty-serial-move-port Hi Alan next-20081204 crashes with the following message: BUG: unable to handle kernel paging request at ffff88007d320248 IP: [] uart_remove_one_port+0xef/0x111 kfree(info); 393: 49 8d 7d 10 lea 0x10(%r13),%rdi 397: e8 00 00 00 00 callq 39c Signed-off-by: Alexander Beregalov Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index daeba1c52c8..9425ed69e0f 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c @@ -2530,10 +2530,8 @@ int uart_remove_one_port(struct uart_driver *drv, struct uart_port *port) /* * Kill the tasklet, and free resources. */ - if (info) { + if (info) tasklet_kill(&info->tlet); - kfree(info); - } state->port = NULL; mutex_unlock(&port_mutex);