diff options
author | Jean-Christophe Dubois <jcd@tribudubois.net> | 2009-05-17 18:38:39 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-20 09:12:58 -0500 |
commit | e332340a7799cf5681bffac264e3ce90288c037f (patch) | |
tree | 503b97f8ce802aad6ad70cd5e8e5afc6fc9fdd2e /hw/xen_backend.c | |
parent | e6ade764ebbbac9a0ce2f710ef0d97272eb1657f (diff) | |
download | qemu-e332340a7799cf5681bffac264e3ce90288c037f.zip qemu-e332340a7799cf5681bffac264e3ce90288c037f.tar.gz qemu-e332340a7799cf5681bffac264e3ce90288c037f.tar.bz2 |
Fix NULL alarm_timer pointer at exit
This fixes a SIGSEGV error on qemu exit.
Here is the valgrind output related to this error
==3648== Process terminating with default action of signal 11 (SIGSEGV)
==3648== Access not within mapped region at address 0x8
==3648== at 0x40636B: host_alarm_handler (vl.c:1345)
==3648== by 0x52D807F: (within /lib/libpthread-2.9.so)
==3648== by 0x5C0A12E: tcsetattr (in /lib/libc-2.9.so)
==3648== by 0x4DD601: term_exit (qemu-char.c:700)
==3648== by 0x5B636EC: exit (in /lib/libc-2.9.so)
==3648== by 0x5B4B5AC: (below main) (in /lib/libc-2.9.so)
This simple fix check for a valid pointer as host_alarm_handler is
also called after alarm_timer is released in the exit path.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
Diffstat (limited to 'hw/xen_backend.c')
0 files changed, 0 insertions, 0 deletions