[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/6] qemu-char: Fix ringbuf option size
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PULL 1/6] qemu-char: Fix ringbuf option size |
Date: |
Wed, 10 Jul 2013 13:52:42 -0400 |
From: Markus Armbruster <address@hidden>
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>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
qemu-char.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-char.c b/qemu-char.c
index 18c42a3..800d6a6 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -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;
--
1.8.1.4
- [Qemu-devel] [PULL 0/6] QMP queue, Luiz Capitulino, 2013/07/10
- [Qemu-devel] [PULL 1/6] qemu-char: Fix ringbuf option size,
Luiz Capitulino <=
- [Qemu-devel] [PULL 2/6] qapi.py: Avoid code duplication, Luiz Capitulino, 2013/07/10
- [Qemu-devel] [PULL 4/6] qapi-schema: Use BlockdevSnapshot type for blockdev-snapshot-sync, Luiz Capitulino, 2013/07/10
- [Qemu-devel] [PULL 3/6] qapi.py: Allow top-level type reference for command definitions, Luiz Capitulino, 2013/07/10
- [Qemu-devel] [PULL 5/6] qapi-schema: Use existing type for drive-backup arguments, Luiz Capitulino, 2013/07/10
- [Qemu-devel] [PULL 6/6] add timestamp to error_report(), Luiz Capitulino, 2013/07/10