Blame SOURCES/kvm-s390x-protvirt-Fix-stray-error_report_err-in-s390_ma.patch

ddf19c
From b54e5e6df5d5bbe4dc0a206be9f6b6d971ce6f43 Mon Sep 17 00:00:00 2001
ddf19c
From: Thomas Huth <thuth@redhat.com>
ddf19c
Date: Fri, 29 May 2020 05:54:17 -0400
ddf19c
Subject: [PATCH 35/42] s390x: protvirt: Fix stray error_report_err in
ddf19c
 s390_machine_protect
ddf19c
MIME-Version: 1.0
ddf19c
Content-Type: text/plain; charset=UTF-8
ddf19c
Content-Transfer-Encoding: 8bit
ddf19c
ddf19c
RH-Author: Thomas Huth <thuth@redhat.com>
ddf19c
Message-id: <20200529055420.16855-36-thuth@redhat.com>
ddf19c
Patchwork-id: 97042
ddf19c
O-Subject: [RHEL-8.3.0 qemu-kvm PATCH v2 35/38] s390x: protvirt: Fix stray error_report_err in s390_machine_protect
ddf19c
Bugzilla: 1828317
ddf19c
RH-Acked-by: Claudio Imbrenda <cimbrend@redhat.com>
ddf19c
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ddf19c
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
ddf19c
RH-Acked-by: David Hildenbrand <david@redhat.com>
ddf19c
ddf19c
From: Janosch Frank <frankja@linux.ibm.com>
ddf19c
ddf19c
In case the protection of the machine fails at s390_pv_vm_enable(),
ddf19c
we'll currently report the local_error variable. Problem is that
ddf19c
there's no migration blocker error that we can report at this point so
ddf19c
the pointer is always NULL which leads to a SEGFAULT.
ddf19c
ddf19c
Let's remove the error report.
ddf19c
ddf19c
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
ddf19c
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
ddf19c
Fixes: 0141e1b47707 ("s390x: protvirt: Add migration blocker")
ddf19c
Message-Id: <20200326140505.2432-1-frankja@linux.ibm.com>
ddf19c
Reviewed-by: David Hildenbrand <david@redhat.com>
ddf19c
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
ddf19c
(cherry picked from commit 7152c9ecc6530ea145c122b0a58cc28802f630c6)
ddf19c
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ddf19c
---
ddf19c
 hw/s390x/s390-virtio-ccw.c | 1 -
ddf19c
 1 file changed, 1 deletion(-)
ddf19c
ddf19c
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
ddf19c
index b4ebe83766..c08e42bda1 100644
ddf19c
--- a/hw/s390x/s390-virtio-ccw.c
ddf19c
+++ b/hw/s390x/s390-virtio-ccw.c
ddf19c
@@ -360,7 +360,6 @@ static int s390_machine_protect(S390CcwMachineState *ms)
ddf19c
     rc = s390_pv_vm_enable();
ddf19c
     if (rc) {
ddf19c
         qemu_balloon_inhibit(false);
ddf19c
-        error_report_err(local_err);
ddf19c
         migrate_del_blocker(pv_mig_blocker);
ddf19c
         error_free_or_abort(&pv_mig_blocker);
ddf19c
         return rc;
ddf19c
-- 
ddf19c
2.27.0
ddf19c