tty/serial: Skip 'NULL' char after console break when sysrq enabled
authorVijay Kumar <vijay.ac.kumar@oracle.com>
Wed, 23 Dec 2015 18:55:33 +0000 (10:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2015 17:13:37 +0000 (12:13 -0500)
commit079317a65d05ce52b69b7d47fe1fb419d40a4395
tree6252b2ec2b3eaf65d87fd506086e8ff314ed2de4
parenta7c5724b5c17775ca8ea2fd9906d8a7e37337cce
tty/serial: Skip 'NULL' char after console break when sysrq enabled

When sysrq is triggered from console, serial driver for SUN hypervisor
console receives a console break and enables the sysrq. It expects a valid
sysrq char following with break. Meanwhile if driver receives 'NULL'
ASCII char then it disables sysrq and sysrq handler will never be invoked.

This fix skips calling uart sysrq handler when 'NULL' is received while
sysrq is enabled.

Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Acked-by: Karl Volz <karl.volz@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/tty/serial/sunhv.c