Re: [PATCH] ui/gtk: making dmabuf NULL when it's released.

2023-06-21 Thread Richard Henderson
On 6/22/23 00:11, Dongwon Kim wrote: static void gd_gl_release_dmabuf(DisplayChangeListener *dcl, QemuDmaBuf *dmabuf) { +VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl); #ifdef CONFIG_GBM egl_dmabuf_release_texture(dmabuf); +i

[PATCH] ui/gtk: making dmabuf NULL when it's released.

2023-06-21 Thread Dongwon Kim
Set vc->gfx.guest_fb.dmabuf to NULL to prevent any further access to it after the dmabuf is released. Cc: Gerd Hoffmann Cc: Marc-André Lureau Cc: Vivek Kasireddy Signed-off-by: Dongwon Kim --- ui/gtk.c | 4 1 file changed, 4 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index e50f950f2