|
From: | Paul Durrant |
Subject: | Re: [PATCH] hw/xen: clean up xen_block_find_free_vdev() to avoid Coverity false positive |
Date: | Thu, 9 Nov 2023 15:47:37 +0000 |
User-agent: | Mozilla Thunderbird |
On 09/11/2023 15:30, David Woodhouse wrote:
From: David Woodhouse <dwmw@amazon.co.uk> Coverity couldn't see that nr_existing was always going to be zero when qemu_xen_xs_directory() returned NULL in the ENOENT case (CID 1523906). Perhaps more to the point, neither could Peter at first glance. Improve the code to hopefully make it clearer to Coverity and human reviewers alike. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> --- hw/block/xen-block.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-)
Reviewed-by: Paul Durrant <paul@xen.org>
[Prev in Thread] | Current Thread | [Next in Thread] |