]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:29 +0000 (08:34 +0200)
commitf789663212b7442071d967730c21b02350352a92
tree550e0a8f0cdd39667fe1126c5db0ccbef48e91be
parent0d0c56e2ea1279e6e40db6e0e3c2ed7db05b6e0e
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