diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-12-14 18:53:24 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-18 11:26:27 -0600 |
commit | 2daa11912699d9412fb4404d646031a74b166aa5 (patch) | |
tree | 6094feb647f04bba7831d6006f70a0dfb2a9fa92 /hw/boards.h | |
parent | 183e6e525764d5c4978e37b42dc2cde0b0ffcfec (diff) | |
download | qemu-2daa11912699d9412fb4404d646031a74b166aa5.zip qemu-2daa11912699d9412fb4404d646031a74b166aa5.tar.gz qemu-2daa11912699d9412fb4404d646031a74b166aa5.tar.bz2 |
monitor: Catch printing to non-existent monitor
The monitor_vprintf() function now touches the 'mon' pointer
before calling monitor_puts(), this causes block migration
to segfault as its functions call monitor_printf() with a
NULL 'mon'.
To fix the problem this commit moves the 'mon' NULL check
from monitor_puts() to monitor_vprintf().
This can potentially hide bugs, but for some reason this has
been the behavior for a long time.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/boards.h')
0 files changed, 0 insertions, 0 deletions