[PATCH] tty: serial: imx: move del_timer_sync() to avoid potential deadlock
shawn.guo at freescale.com
Sun Dec 25 21:00:18 EST 2011
On Fri, Dec 23, 2011 at 05:39:27AM +0800, Eric Miao wrote:
> del_timer_sync() acquires its own lock and doesn't have to be nested
> within the spinlock of sport->port.lock in imx_set_termios(), which
> will cause potential deadlock. Fix this by moving it outside.
> Cc: Fabio Estevam <fabio.estevam at freescale.com>
> Cc: Shawn Guo <shawn.guo at linaro.org>
> Cc: Sascha Hauer <s.hauer at pengutronix.de>
> Cc: Greg Kroah-Hartman <gregkh at suse.de>
> Signed-off-by: Eric Miao <eric.miao at linaro.org>
I queued this for 3.3, and will send a pull-request to Greg.
More information about the linux-arm-kernel