Fix sysrq support from the monitor mux
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.
Signed-off-by Jason Wessel <[email protected]>
Jason.
--- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
vl.c +1 -1
@@ -1371,7 +1371,7 @@ static int mux_proc_byte(CharDriverStatebreak ;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 */