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

Signed-off-by: Jason Wessel <[EMAIL PROTECTED]>

Jason.


---
 vl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: qemu/vl.c
===================================================================
--- qemu.orig/vl.c
+++ 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 */

Reply via email to