> From: Junrui Luo <[email protected]>
> 
> 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 <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=3

Reply via email to