qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] qom/object: Fix object_child_foreach_recursive() return valu


From: Cédric Le Goater
Subject: Re: [PATCH] qom/object: Fix object_child_foreach_recursive() return value
Date: Mon, 6 Apr 2020 09:24:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

Hello David,

On 4/4/20 5:33 PM, Cédric Le Goater wrote:
> When recursing, the return value of do_object_child_foreach() is not
> taken into account.

Patch "ppc/pnv: Create BMC devices only when defaults are enabled" :

        http://patchwork.ozlabs.org/patch/1266421

depends on this fix. 

May be it can go through the ppc branch ? A patchset with these
two patches would have been easier to track :/ Sorry about that.

Thanks,

C. 

> Cc: Peter Crosthwaite <address@hidden>
> Fixes: d714b8de7747 ("qom: Add recursive version of object_child_for_each")
> Signed-off-by: Cédric Le Goater <address@hidden>
> ---
>  qom/object.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/qom/object.c b/qom/object.c
> index 1812f792247d..b68a707a5e65 100644
> --- a/qom/object.c
> +++ b/qom/object.c
> @@ -1057,7 +1057,10 @@ static int do_object_child_foreach(Object *obj,
>                  break;
>              }
>              if (recurse) {
> -                do_object_child_foreach(child, fn, opaque, true);
> +                ret = do_object_child_foreach(child, fn, opaque, true);
> +                if (ret != 0) {
> +                    break;
> +                }
>              }
>          }
>      }
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]