summaryrefslogtreecommitdiffstats
path: root/hw/virtio-blk.c
diff options
context:
space:
mode:
authorMichael Roth2012-05-14 23:42:35 +0200
committerMichael Roth2012-05-15 16:16:55 +0200
commit6c615ec57e83bf8cc7b1721bcd58c7d1ed93ef65 (patch)
tree7f3984ee87168ce88de2c66b330c5bdd639febef /hw/virtio-blk.c
parentqemu-ga: guest-shutdown: use only async-signal-safe functions (diff)
downloadqemu-6c615ec57e83bf8cc7b1721bcd58c7d1ed93ef65.tar.gz
qemu-6c615ec57e83bf8cc7b1721bcd58c7d1ed93ef65.tar.xz
qemu-6c615ec57e83bf8cc7b1721bcd58c7d1ed93ef65.zip
qemu-ga: fix segv after failure to open log file
Currently, if we fail to open the specified log file (generally due to a permissions issue), we'll assign NULL to the logfile handle (stderr, initially) used by the logging routines, which can cause a segfault to occur when we attempt to report the error before exiting. Instead, only re-assign if the open() was successful. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'hw/virtio-blk.c')
0 files changed, 0 insertions, 0 deletions