diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-04-29 13:52:34 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-05-18 15:43:35 +0200 |
commit | 19aaee2a65a26693fe0a30b5a0746f967774e278 (patch) | |
tree | 81ac04311310b6792cbbfa1f0b22d538bd4b6cd3 /hw/xen/xen_pt_config_init.c | |
parent | 46a298d60271f03d4f85031827426fca67af2a20 (diff) |
ramfb: don't update RAMFBState on errors
Store width & height & surface in local variables. Update RAMFBState
with the new values only in case the ramfb_create_display_surface() call
succeeds.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-id: 20200429115236.28709-5-kraxel@redhat.com
Diffstat (limited to 'hw/xen/xen_pt_config_init.c')
0 files changed, 0 insertions, 0 deletions