Markus Armbruster
ee29f6e92d
bochs-display: Fix vgamem=SIZE error handling
bochs_display_realize() rejects out-of-range vgamem. The error
handling is broken:
$ qemu-system-x86_64 -S -display none -monitor stdio
QEMU 4.2.93 monitor - type 'help' for more information
(qemu) device_add bochs-display,vgamem=1
Error: bochs-display: video memory too small
(qemu) device_add bochs-display,vgamem=1
RAMBlock "0000:00:04.0/bochs-display-vram" already registered, abort!
Aborted (core dumped)
Cause: bochs_display_realize() neglects to bail out after setting the
error. Fix that.
Fixes: 765c94290863eef1fc4a67819d452cc13b7854a1
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200422130719.28225-8-armbru@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
2020-04-29 08:01:52 +02:00
..
2020-01-20 09:10:23 +01:00
2020-02-18 11:21:47 -08:00
2020-04-07 09:25:23 +02:00
2020-01-24 20:59:15 +01:00
2020-03-23 17:22:30 +00:00
2020-04-29 08:01:52 +02:00
2020-03-17 15:18:46 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-03-02 08:20:30 +01:00
2020-03-09 15:59:31 +01:00
2020-03-17 15:18:48 +01:00
2020-01-24 20:59:15 +01:00
2019-12-16 13:04:46 +01:00
2020-01-27 10:49:51 -08:00
2020-03-17 15:18:48 +01:00
2020-02-04 09:00:57 +01:00
2020-02-20 14:47:08 +01:00
2020-01-24 20:59:15 +01:00
2020-02-20 14:47:08 +01:00
2020-02-20 14:47:08 +01:00
2020-03-09 15:59:31 +01:00
2020-01-02 13:54:57 +04:00
2020-03-02 08:24:36 +01:00
2020-02-13 08:31:40 +01:00
2020-01-24 20:59:15 +01:00
2020-02-20 14:47:08 +01:00
2020-01-24 20:59:15 +01:00
2020-03-17 15:18:46 +01:00
2020-01-27 10:49:51 -08:00
2019-12-18 02:34:13 +01:00
2019-12-18 02:34:13 +01:00
2020-01-24 20:59:15 +01:00
2020-03-16 12:40:47 +01:00
2019-12-18 02:34:13 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2020-01-24 20:59:15 +01:00
2019-11-21 07:12:28 +01:00