diff options
| author | 2026-09-15 15:39:12 +0800 | |
|---|---|---|
| committer | 2026-09-20 20:48:52 +0300 | |
| commit | 24b6d5c7641412c9ebef0d4c8b888d49a0e6b880 (patch) | |
| tree | f7cca14245360de0050b0b49e0e7bba783852cad /scripts/Makefile.thinlto | |
| parent | drm/virtio: fix object leak in virtio_gpu_resource_create_ioctl() (diff) | |
drm/virtio: fix object leaks in virtio_gpu_resource_create_blob_ioctl()
virtio_gpu_resource_create_blob_ioctl() calls drm_gem_object_release() on
both the virtio_gpu_resource_assign_uuid() and drm_gem_handle_create()
error paths instead of dropping the reference it owns, so
obj->funcs->free() never runs and the virtio_gpu_object, the resource id
and the host-side resource are leaked.
Use drm_gem_object_put() instead.
Fixes: 897b4d1acaf5 ("drm/virtio: implement blob resources: resource create blob ioctl")
Assisted-by: Claude:claude-opus-5
Signed-off-by: Junrui Luo <moonafterrain@outlook.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://patch.msgid.link/20260915-fixes-v2-3-a0d799e4db66@outlook.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
