The patch titled

     hvc_console: MAGIC_SYSRQ should only be on console channel

has been added to the -mm tree.  Its filename is

     hvc_console-magic_sysrq-should-only-be-on-console-channel.patch

Patches currently in -mm which might be from [EMAIL PROTECTED] are

hvc_console-rearrange-code.patch
hvc_console-match-vio-and-console-devices-using-vterm-numbers.patch
hvc_console-dont-always-kick-the-poll-thread-in-interrupt.patch
hvc_console-magic_sysrq-should-only-be-on-console-channel.patch
hvc_console-unregister-the-console-in-the-exit-routine.patch
hvc_console-add-missing-include.patch
hvc_console-remove-num_vterms-and-some-dead-code.patch
hvc_console-statically-initialize-the-vtermnos-array.patch
hvc_console-add-some-sanity-checks.patch
hvc_console-separate-hvc_console-and-vio-code.patch
hvc_console-separate-hvc_console-and-vio-code-2.patch
hvc_console-register-ops-when-setting-up-hvc_console.patch
hvc_console-separate-the-nul-character-filtering-from-get_hvc_chars.patch
hvc_console-use-hvc_get_chars-in-hvsi-code.patch



From: Milton Miller <[EMAIL PROTECTED]>

Guard the MAGIC_SYSRQ ^O to be just on the console channel.  Make the other
channels more transparent.

Signed-off-by: Milton Miller <[EMAIL PROTECTED]>
Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/char/hvc_console.c |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff -puN 
drivers/char/hvc_console.c~hvc_console-magic_sysrq-should-only-be-on-console-channel
 drivers/char/hvc_console.c
--- 
25/drivers/char/hvc_console.c~hvc_console-magic_sysrq-should-only-be-on-console-channel
     Wed Jul  6 14:00:25 2005
+++ 25-akpm/drivers/char/hvc_console.c  Wed Jul  6 14:00:25 2005
@@ -584,14 +584,17 @@ static int hvc_poll(struct hvc_struct *h
                }
                for (i = 0; i < n; ++i) {
 #ifdef CONFIG_MAGIC_SYSRQ
-                       /* Handle the SysRq Hack */
-                       if (buf[i] == '\x0f') { /* ^O -- should support a 
sequence */
-                               sysrq_pressed = 1;
-                               continue;
-                       } else if (sysrq_pressed) {
-                               handle_sysrq(buf[i], NULL, tty);
-                               sysrq_pressed = 0;
-                               continue;
+                       if (hp->index == hvc_con_driver.index) {
+                               /* Handle the SysRq Hack */
+                               /* XXX should support a sequence */
+                               if (buf[i] == '\x0f') { /* ^O */
+                                       sysrq_pressed = 1;
+                                       continue;
+                               } else if (sysrq_pressed) {
+                                       handle_sysrq(buf[i], NULL, tty);
+                                       sysrq_pressed = 0;
+                                       continue;
+                               }
                        }
 #endif /* CONFIG_MAGIC_SYSRQ */
                        tty_insert_flip_char(tty, buf[i], 0);
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to