diff options
| author | Markus Armbruster <armbru@redhat.com> | 2023-02-07 08:51:06 +0100 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2023-02-23 14:10:17 +0100 |
| commit | f1a4697c236aae8f7d13042e4c6a31c228aa8595 (patch) | |
| tree | 6cf4594315bd9443ca3ca404d574bbe646868aee /hw/core/machine-qmp-cmds.c | |
| parent | f969c627e31fe7752fd5c2ff036e587ec9749a25 (diff) | |
| download | focaccia-qemu-f1a4697c236aae8f7d13042e4c6a31c228aa8595.tar.gz focaccia-qemu-f1a4697c236aae8f7d13042e4c6a31c228aa8595.zip | |
dump: Assert cpu_get_note_size() can't fail
The only way cpu_get_note_size() can return a negative value is integer overflow in the non-stub versions, which is a programming error. The stub version is not actually reachable, because the cpu_get_dump_info() stub will fail first. Use assert(). This gets rid of another use of QERR_UNSUPPORTED. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20230207075115.1525-4-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hw/core/machine-qmp-cmds.c')
0 files changed, 0 insertions, 0 deletions