diff options
author | zhangjixiang | 2018-02-25 02:47:51 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2018-03-20 13:32:06 +0100 |
commit | 32cd6550f7a6c8a621798c8b249eae2597db04ea (patch) | |
tree | 9ac58a368b3304e80675ca86169f4a77a6266591 /target/i386/monitor.c | |
parent | Merge remote-tracking branch 'remotes/ericb/tags/pull-qapi-2018-03-12-v4' int... (diff) | |
download | qemu-32cd6550f7a6c8a621798c8b249eae2597db04ea.tar.gz qemu-32cd6550f7a6c8a621798c8b249eae2597db04ea.tar.xz qemu-32cd6550f7a6c8a621798c8b249eae2597db04ea.zip |
HMP: Initialize err before using
When bdrv_snapshot_delete return fail, the errp will not be
assigned a valid value in error_propagate as errp didn't be
initialized in hmp_delvm, then error_reportf_err will use an
uninitialized value(call by hmp_delvm), and qemu crash.
Signed-off-by: zhangjixiang <jixiang_zhang@h3c.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'target/i386/monitor.c')
0 files changed, 0 insertions, 0 deletions