]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00180636: tty/imx: lock check while handle sysrq message
authorJason Liu <r64343@freescale.com>
Wed, 11 Apr 2012 05:21:15 +0000 (13:21 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:36 +0000 (14:11 +0200)
commitbc7dd79835fd8de0d01827e2b95dfce0a0e89678
tree550e0a8f0cdd39667fe1126c5db0ccbef48e91be
parentfb576db47485e11336857d4f7606c7d605b7f2a5
ENGR00180636: tty/imx: lock check while handle sysrq message

Since the port->lock has already been hold when enter rx_interrupt,
and thus hold it on during handle_sysrq. We need check whether the
current console_write is for the sysrq message output or not and use
the correct lock mechanism.

Signed-off-by: Jason Liu <r64343@freescale.com>
drivers/tty/serial/imx.c