Re: [PATCH 3/5] ramfb: don't update RAMFBState on errors

2020-04-22 Thread Laszlo Ersek
On 04/22/20 12:02, Gerd Hoffmann wrote: > 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 > --- > hw/display/ramfb.c | 25 - > 1 f

Re: [PATCH 3/5] ramfb: don't update RAMFBState on errors

2020-04-22 Thread Philippe Mathieu-Daudé
On 4/22/20 12:02 PM, Gerd Hoffmann wrote: 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 --- hw/display/ramfb.c | 25 - 1 file change

[PATCH 3/5] ramfb: don't update RAMFBState on errors

2020-04-22 Thread Gerd Hoffmann
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 --- hw/display/ramfb.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --gi