)]}'
{
  "commit": "ea4f6fb68bc7733053ee0906bcdf908386e02b01",
  "tree": "ccfac9ed420ef7290c5c41d741854270e250c23b",
  "parents": [
    "f3248e1e19195e2e18b83754603f200030c6e802"
  ],
  "author": {
    "name": "Marc-André Lureau",
    "email": "marcandre.lureau@redhat.com",
    "time": "Mon Jul 13 16:56:22 2026 +0400"
  },
  "committer": {
    "name": "Michael Tokarev",
    "email": "mjt@tls.msk.ru",
    "time": "Tue Jul 21 00:02:25 2026 +0300"
  },
  "message": "hw/display/virtio-gpu: fix dmabuf_fd leak on remap failure\n\nWhen virtio_gpu_create_udmabuf() succeeds but virtio_gpu_remap_udmabuf()\nfails (mmap returns MAP_FAILED), virtio_gpu_init_udmabuf() returns early\nwithout closing the dmabuf fd. Since res-\u003eblob is never set in this\npath, later cleanup via virtio_gpu_cleanup_mapping() skips\nvirtio_gpu_fini_udmabuf() entirely, leaking the file descriptor.\n\nCall virtio_gpu_destroy_udmabuf() before the early return to close\nthe fd. This function already handles partial state correctly: it\nskips the munmap when res-\u003eremapped is NULL and closes the fd when\nres-\u003edmabuf_fd \u003e\u003d 0.\n\nFixes: 9b60cdf98723 (\"virtio-gpu: Add udmabuf helpers\")\nSigned-off-by: Marc-André Lureau \u003cmarcandre.lureau@redhat.com\u003e\nReviewed-by: Philippe Mathieu-Daudé \u003cphilmd@oss.qualcomm.com\u003e\nReviewed-by: Dmitry Osipenko \u003cdmitry.osipenko@collabora.com\u003e\nReviewed-by: Akihiko Odaki \u003codaki@rsg.ci.i.u-tokyo.ac.jp\u003e\nMessage-ID: \u003c20260713125622.111513-1-marcandre.lureau@redhat.com\u003e\nSigned-off-by: Philippe Mathieu-Daudé \u003cphilmd@oss.qualcomm.com\u003e\n(cherry picked from commit 564c4d7e99d87b39c3faea52ef8759df7f786f61)\nSigned-off-by: Michael Tokarev \u003cmjt@tls.msk.ru\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "74b6a7766af6fbd594fcc4ba5d94a06b0cc7e765",
      "old_mode": 33188,
      "old_path": "hw/display/virtio-gpu-udmabuf.c",
      "new_id": "20884f397e9cd7686065e2670975547a1941ab13",
      "new_mode": 33188,
      "new_path": "hw/display/virtio-gpu-udmabuf.c"
    }
  ]
}
