]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: 'NULL' char after break when sysrq enabled
authorVijay Kumar <vijay.ac.kumar@oracle.com>
Wed, 23 Dec 2015 10:28:30 +0000 (02:28 -0800)
committerAllen Pais <allen.pais@oracle.com>
Wed, 23 Dec 2015 14:17:11 +0000 (19:47 +0530)
commit9b7c51327158b00ff7d3b67f6878f33255ff6ede
treef01cf1b97ee0a031e3437c8a08d5895c745f74ec
parent1c98598a4ba02c0b2da587d1bc75f7ba35a5055f
sparc64: 'NULL' char after 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.

Orabug: 22456721

Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Acked-by: Karl Volz <karl.volz@oracle.com>
(cherry picked from commit 30ae1c049f8720f93e2b36f084448f6dc370d30b)
drivers/tty/serial/sunhv.c