- Fix stable issues found in upstream: hmp-Fix-loadvm-to-resume-the-VM-on-succe.patch hw-block-nvme-align-with-existing-style.patch hw-nvme-fix-missing-check-for-PMR-capabi.patch hw-nvme-fix-pin-based-interrupt-behavior.patch linux-user-aarch64-Enable-hwcap-for-RND-.patch qemu-config-load-modules-when-instantiat.patch qemu-config-parse-configuration-files-to.patch qemu-config-use-qemu_opts_from_qdict.patch runstate-Initialize-Error-to-NULL.patch target-i386-Exit-tb-after-wrmsr.patch tcg-Allocate-sufficient-storage-in-temp_.patch tcg-sparc-Fix-temp_allocate_frame-vs-spa.patch vhost-vdpa-don-t-initialize-backend_feat.patch vl-allow-not-specifying-size-in-m-when-u.patch vl-Fix-an-assert-failure-in-error-path.patch vl-plug-object-back-into-readconfig.patch vl-plumb-keyval-based-options-into-readc.patch x86-acpi-use-offset-instead-of-pointer-w.patch - Update qemu-supportconfig plugin - Fix an update-alternative warning when removing qemu-skiboot package bsc#1178678 OBS-URL: https://build.opensuse.org/request/show/903710 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=660
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From: Peng Liang <liangpeng10@huawei.com>
|
|
Date: Thu, 10 Jun 2021 21:17:29 +0800
|
|
Subject: runstate: Initialize Error * to NULL
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Git-commit: 6e1da3d305499d3907f3c7f6638243e2e09b5085
|
|
|
|
Based on the description of error_setg(), the local variable err in
|
|
qemu_init_subsystems() should be initialized to NULL.
|
|
|
|
Fixes: efd7ab22fb ("vl: extract qemu_init_subsystems")
|
|
Cc: qemu-stable@nongnu.org
|
|
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
|
|
Message-Id: <20210610131729.3906565-1-liangpeng10@huawei.com>
|
|
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
Signed-off-by: Jose R. Ziviani <jziviani@suse.de>
|
|
---
|
|
softmmu/runstate.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/softmmu/runstate.c b/softmmu/runstate.c
|
|
index ce8977c6a29c939ac5890b170031..54713100c2eacc4ee616905b732d 100644
|
|
--- a/softmmu/runstate.c
|
|
+++ b/softmmu/runstate.c
|
|
@@ -746,7 +746,7 @@ static void qemu_run_exit_notifiers(void)
|
|
|
|
void qemu_init_subsystems(void)
|
|
{
|
|
- Error *err;
|
|
+ Error *err = NULL;
|
|
|
|
os_set_line_buffering();
|
|
|