mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
qemu-char: Fix ringbuf option size
Any attempt to use it trips an "opt->desc->type == QEMU_OPT_NUMBER"
assertion. Broken in commit 1da48c65
.
Cc: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
51455c59dd
commit
0f95305117
1 changed files with 1 additions and 1 deletions
|
@ -3115,7 +3115,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;
|
||||
|
|
Loading…
Reference in a new issue