diff options
| author | Junrui Luo <moonafterrain@outlook.com> | 2026-09-15 15:39:12 +0800 |
|---|---|---|
| committer | Dmitry Osipenko <dmitry.osipenko@collabora.com> | 2026-09-20 20:48:52 +0300 |
| commit | 24b6d5c7641412c9ebef0d4c8b888d49a0e6b880 (patch) | |
| tree | f7cca14245360de0050b0b49e0e7bba783852cad /tools/perf/scripts/python/stackcollapse.py | |
| parent | 477bc3068fc3777b9d8ffd79e265b0dfdf2d3a6b (diff) | |
| download | linux-next-24b6d5c7641412c9ebef0d4c8b888d49a0e6b880.tar.gz linux-next-24b6d5c7641412c9ebef0d4c8b888d49a0e6b880.zip | |
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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
