On 2026/09/04 22:10, Marc-André Lureau wrote:
All allocation sites used g_new0() which zero-initializes fields.
However share_handle must be SHAREABLE_NONE (-1 on Unix, NULL on
Windows) and dmabuf_fd must be -1, not 0. Centralize allocation and
field initialization in new constructors fix this and reduce code
duplication.

This fixes -display dbus with virtio-gpu blob resources. The other
end is currently receiving qemu fd 0.

Fixes: 5f899c34af1d (“virtio-gpu: allocate shareable 2d resources on !win32”)
Signed-off-by: Marc-André Lureau <[email protected]>


Reviewed-by: Akihiko Odaki <[email protected]>

Regards,
Akihiko Odaki

Reply via email to