Skip to contentSkip to conversation

Fix sysrq support from the monitor mux

PATCH New Jason Wessel 1 participant 1 message May 18, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix sysrq support from the monitor mux

The monitor mux code calls uses the wrong opaque structure and crashes qemu. This patch fixes it such that the sysrq support works correctly.

Jason.

---
 vl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
vl.c +1 -1
Index: qemu/vl.c
===================================================================
@@ -1371,7 +1371,7 @@ static int mux_proc_byte(CharDriverState
             break;
         case 'b':
             if (chr->chr_event)
-                chr->chr_event(chr->opaque, CHR_EVENT_BREAK);
+                chr->chr_event(chr->handler_opaque, CHR_EVENT_BREAK);
             break;
         case 'c':
             /* Switch to the next registered device */