qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 13/21] block: Introduce bs->explicit_options


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 13/21] block: Introduce bs->explicit_options
Date: Fri, 8 Jan 2016 10:18:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0


On 23/11/2015 16:59, Kevin Wolf wrote:
> +    bs->explicit_options = qdict_clone_shallow(options);

qdict_clone_shallow dereferences options, and other parts of
bdrv_open_inherit assume options != NULL.  You can remove the first part
of this condition, some 50 lines below:

    /* Check if any unknown options were used */
    if (options && (qdict_size(options) != 0)) {

Thanks,

Paolo
> +
>      if (child_role) {
>          bs->inherits_from = parent;
>          child_role->inherit_options(&flags, options,



reply via email to

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