[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 16/21] s390/cpu_modules: Fix latent realize() error handling
From: |
David Hildenbrand |
Subject: |
Re: [PATCH 16/21] s390/cpu_modules: Fix latent realize() error handling bugs |
Date: |
Sun, 1 Dec 2019 15:25:58 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 |
On 30.11.19 20:42, Markus Armbruster wrote:
> get_max_cpu_model() crashes when kvm_s390_get_host_cpu_model() fails
> and its @errp argument is null.
>
> apply_cpu_model() crashes when kvm_s390_apply_cpu_model() fails and
> its @errp argument is null.
>
> s390_realize_cpu_model() crashes when get_max_cpu_model() or
> check_compatibility() fail, and its @errp argument is null.
>
> All three messed up in commit 80560137cf "s390x/cpumodel: check and
> apply the CPU model".
>
> The bugs can't bite as no caller actually passes null. Fix them
> anyway.
>
Subject is wrong, should e.g., start with "s390x/cpumodels". (I am not
aware of CPU modules :) )
[...]
Same comment regarding "local_err" and "BUG".
Reviewed-by: David Hildenbrand <address@hidden>
--
Thanks,
David / dhildenb
- Re: [PATCH 16/21] s390/cpu_modules: Fix latent realize() error handling bugs,
David Hildenbrand <=