]> xenbits.xensource.com Git - qemu-xen.git/commit
ui/gtk: making dmabuf NULL when it's released.
authorDongwon Kim <dongwon.kim@intel.com>
Tue, 27 Jun 2023 00:53:16 +0000 (17:53 -0700)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 27 Jun 2023 15:08:56 +0000 (17:08 +0200)
commit2fc280734a6e7ab9263114214f06b6e69e54fabe
tree967ecddf60598484d672259a7d598099e070af97
parent7b41ca8d913cdd91d33d74d906dd5d7bd9f41045
ui/gtk: making dmabuf NULL when it's released.

Set vc->gfx.guest_fb.dmabuf to NULL to prevent any further access
to it after the dmabuf is released.

v2: move declaration of vc inside ifdef

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20230627005316.5627-1-dongwon.kim@intel.com>
ui/gtk.c