diff options
| author | Junrui Luo <moonafterrain@outlook.com> | 2026-09-15 15:39:11 +0800 |
|---|---|---|
| committer | Dmitry Osipenko <dmitry.osipenko@collabora.com> | 2026-09-20 20:48:51 +0300 |
| commit | 477bc3068fc3777b9d8ffd79e265b0dfdf2d3a6b (patch) | |
| tree | 9de1028164f021ca9b28fba4c58f50b02a60c9f2 /tools/perf/scripts/python | |
| parent | 36570ef2244cc4d7563b1f0157bc0f032498638c (diff) | |
| download | linux-next-477bc3068fc3777b9d8ffd79e265b0dfdf2d3a6b.tar.gz linux-next-477bc3068fc3777b9d8ffd79e265b0dfdf2d3a6b.zip | |
drm/virtio: fix object leak in virtio_gpu_resource_create_ioctl()
virtio_gpu_resource_create_ioctl() calls drm_gem_object_release() on the
drm_gem_handle_create() error path instead of dropping the reference it
owns, so obj->funcs->free() never runs and the virtio_gpu_object, its
pages and sg table, the resource id and the host-side resource are
leaked.
Use drm_gem_object_put() instead.
Fixes: 62fb7a5e1096 ("virtio-gpu: add 3d/virgl support")
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-2-a0d799e4db66@outlook.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
