diff options
author | Xiao Guangrong | 2016-07-13 06:18:05 +0200 |
---|---|---|
committer | Paolo Bonzini | 2016-07-13 13:30:04 +0200 |
commit | 1454d33f0507cb54d62ed80f494884157c9e7130 (patch) | |
tree | 92d9d3c6bc0b64f46af8ac68124c1b8aa7366448 /vl.c | |
parent | char: do not use atexit cleanup handler (diff) | |
download | qemu-1454d33f0507cb54d62ed80f494884157c9e7130.tar.gz qemu-1454d33f0507cb54d62ed80f494884157c9e7130.tar.xz qemu-1454d33f0507cb54d62ed80f494884157c9e7130.zip |
hostmem: fix QEMU crash by 'info memdev'
'info memdev' crashes QEMU:
(qemu) info memdev
Unexpected error in parse_str() at qapi/string-input-visitor.c:111:
Parameter 'null' expects an int64 value or range
It is caused by null uint16List is returned if 'host-nodes' is the default
value
Return MAX_NODES under this case to fix this bug
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions