qemu-char: Fix ringbuf option size
Any attempt to use it trips an "opt->desc->type == QEMU_OPT_NUMBER" assertion. Broken in commit1da48c65
. 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> (cherry picked from commit0f95305117
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
88cc6975fe
commit
4f8dca7333
|
@ -3162,7 +3162,7 @@ static void qemu_chr_parse_ringbuf(QemuOpts *opts, ChardevBackend *backend,
|
|||
|
||||
backend->ringbuf = g_new0(ChardevRingbuf, 1);
|
||||
|
||||
val = qemu_opt_get_number(opts, "size", 0);
|
||||
val = qemu_opt_get_size(opts, "size", 0);
|
||||
if (val != 0) {
|
||||
backend->ringbuf->has_size = true;
|
||||
backend->ringbuf->size = val;
|
||||
|
|
Loading…
Reference in New Issue