commit | 1c7bb81885f56666a4eaf934989c6607120add30 | [log] [tgz] |
---|---|---|
author | Eric Miao <eric.miao@linaro.org> | Fri Dec 23 05:30:21 2011 +0800 |
committer | Eric Miao <eric.miao@linaro.org> | Fri Jan 06 12:11:36 2012 +0800 |
tree | dcaf9482bc5ada6821d82b5082ed1f8b685af28a | |
parent | 4f0c43b5a5ef59f7993f8ef25dc96c8aa1366608 [diff] |
tty: serial: imx: move del_timer_sync() to avoid potential deadlock 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@freescale.com> Cc: Shawn Guo <shawn.guo@linaro.org> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Eric Miao <eric.miao@linaro.org>