Commit bc325628 authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Linus Torvalds

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: [<ffffffff803de934>] 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 <uart_remove_one_port+0xef>
Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f751928e
...@@ -2530,10 +2530,8 @@ int uart_remove_one_port(struct uart_driver *drv, struct uart_port *port) ...@@ -2530,10 +2530,8 @@ int uart_remove_one_port(struct uart_driver *drv, struct uart_port *port)
/* /*
* Kill the tasklet, and free resources. * Kill the tasklet, and free resources.
*/ */
if (info) { if (info)
tasklet_kill(&info->tlet); tasklet_kill(&info->tlet);
kfree(info);
}
state->port = NULL; state->port = NULL;
mutex_unlock(&port_mutex); mutex_unlock(&port_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment