Re: [PATCH] accel/rocket: put IOMMU domain on BO creation failure
From: Heiko Stübner
Date: Sun Nov 15 2026 - 15:51:34 EST
Am Mittwoch, 8. Juli 2026, 13:43:54 Mitteleuropäische Normalzeit schrieb Guangshuo Li:
> rocket_ioctl_create_bo() takes an IOMMU domain reference for each newly
> created BO.
>
> The normal GEM object release path drops that reference from
> rocket_gem_bo_free(). However, the BO creation error paths free the
> object with drm_gem_shmem_object_free(), which bypasses the driver's GEM
> .free callback. Those paths therefore release the shmem object without
> dropping the IOMMU domain reference.
>
> Drop the domain reference explicitly on the BO creation error path before
> freeing the shmem object.
>
> Fixes: 658ebeac3351 ("accel/rocket: Add IOCTL for BO creation")
> Signed-off-by: Guangshuo Li <lgs201920130244@xxxxxxxxx>
Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx>