[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] s390x: protvirt: Fix stray error_report_err in s390_machine_
From: |
David Hildenbrand |
Subject: |
Re: [PATCH] s390x: protvirt: Fix stray error_report_err in s390_machine_protect |
Date: |
Fri, 27 Mar 2020 10:15:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
On 26.03.20 15:05, Janosch Frank wrote:
> In case the protection of the machine fails at s390_pv_vm_enable(),
> we'll currently report the local_error variable. Problem is that
> there's no migration blocker error that we can report at this point so
> the pointer is always NULL which leads to a SEGFAULT.
>
> Let's remove the error report.
>
> Signed-off-by: Janosch Frank <address@hidden>
> Reported-by: Marc Hartmayer <address@hidden>
> Fixes: 520935eedf941da3 ("s390x: protvirt: Add migration blocker")
> ---
> hw/s390x/s390-virtio-ccw.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
> index 3cf19c99f3468b7d..855ecf370d6e82fa 100644
> --- a/hw/s390x/s390-virtio-ccw.c
> +++ b/hw/s390x/s390-virtio-ccw.c
> @@ -358,7 +358,6 @@ static int s390_machine_protect(S390CcwMachineState *ms)
> rc = s390_pv_vm_enable();
> if (rc) {
> qemu_balloon_inhibit(false);
> - error_report_err(local_err);
> migrate_del_blocker(pv_mig_blocker);
> error_free_or_abort(&pv_mig_blocker);
> return rc;
>
Reviewed-by: David Hildenbrand <address@hidden>
--
Thanks,
David / dhildenb