[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] console: fix dpy_gfx_replace_surface assert
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH] console: fix dpy_gfx_replace_surface assert |
Date: |
Wed, 6 Sep 2017 16:50:04 +0200 |
On Wed, Sep 6, 2017 at 4:21 PM, Gerd Hoffmann <address@hidden> wrote:
> virtio-gpu can trigger the assert added by commit "6905b93447 console:
> add same surface replace pre-condition" in multihead setups (where
> surface can be NULL for secondary displays). Allow surface being NULL.
>
> Fixes: 6905b93447a42e606dfd126b90f75f4cd3c6fe94
> Signed-off-by: Gerd Hoffmann <address@hidden>
oops
Reviewed-by: Marc-André Lureau <address@hidden>
> ---
> ui/console.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ui/console.c b/ui/console.c
> index d2d3534c49..f0292d7820 100644
> --- a/ui/console.c
> +++ b/ui/console.c
> @@ -1540,7 +1540,7 @@ void dpy_gfx_replace_surface(QemuConsole *con,
> DisplaySurface *old_surface = con->surface;
> DisplayChangeListener *dcl;
>
> - assert(old_surface != surface);
> + assert(old_surface != surface || surface == NULL);
>
> con->surface = surface;
> QLIST_FOREACH(dcl, &s->listeners, next) {
> --
> 2.9.3
>
>
--
Marc-André Lureau