Re: [PATCH] tty: serial: imx: move del_timer_sync() to avoidpotential deadlock

From: Shawn Guo
Date: Sun Dec 25 2011 - 20:46:49 EST

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@xxxxxxxxxxxxx>
> Cc: Shawn Guo <shawn.guo@xxxxxxxxxx>
> Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxx>
> Signed-off-by: Eric Miao <eric.miao@xxxxxxxxxx>

I queued this for 3.3, and will send a pull-request to Greg.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at