qemu-stable
[Top][All Lists]
Advanced

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

Re: [Qemu-stable] [PATCH 1/4] qemu-char: Fix ringbuf option size


From: Eric Blake
Subject: Re: [Qemu-stable] [PATCH 1/4] qemu-char: Fix ringbuf option size
Date: Thu, 27 Jun 2013 17:17:56 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

On 06/27/2013 08:22 AM, Markus Armbruster wrote:
> Any attempt to use it trips an "opt->desc->type == QEMU_OPT_NUMBER"
> assertion.  Broken in commit 1da48c65.
> 
> Cc: address@hidden
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
>  qemu-char.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Eric Blake <address@hidden>

> 
> diff --git a/qemu-char.c b/qemu-char.c
> index 63972ae..63a9221 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -3108,7 +3108,7 @@ static void qemu_chr_parse_memory(QemuOpts *opts, 
> ChardevBackend *backend,
>  
>      backend->memory = g_new0(ChardevMemory, 1);
>  
> -    val = qemu_opt_get_number(opts, "size", 0);
> +    val = qemu_opt_get_size(opts, "size", 0);
>      if (val != 0) {
>          backend->memory->has_size = true;
>          backend->memory->size = val;
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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