Re: [PATCH] serial: imx: Fix recursive locking bug

2013-02-15 Thread Greg Kroah-Hartman
On Thu, Feb 14, 2013 at 09:01:06PM +0100, Thomas Gleixner wrote: > commit 9ec1882df2 (tty: serial: imx: console write routing is unsafe > on SMP) introduced a recursive locking bug in imx_console_write(). > > The callchain is: > > imx_rxint() > spin_lock_irqsave(&sport->port.lock,flags); > ..

[PATCH] serial: imx: Fix recursive locking bug

2013-02-14 Thread Thomas Gleixner
commit 9ec1882df2 (tty: serial: imx: console write routing is unsafe on SMP) introduced a recursive locking bug in imx_console_write(). The callchain is: imx_rxint() spin_lock_irqsave(&sport->port.lock,flags); ... uart_handle_sysrq_char(); sysrq_function(); printk(); imx_c