summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-07-08 19:43:54 +0800
committerTomeu Vizoso <tomeu@tomeuvizoso.net>2026-11-16 10:57:31 +0100
commit90035d3f26e011e16fcf9c5071571f0d956b5219 (patch)
tree458615cefce3887bf5b12bfdb54c03b3a44362d4 /rust/kernel/alloc/kvec/errors.rs
parentb1e4074bfd00bc7dcf760c8eeb9b694895e5296e (diff)
accel/rocket: put IOMMU domain on BO creation failure
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@gmail.com> Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net> Signed-off-by: Tomeu Vizoso <tomeu@tomeuvizoso.net> Link: https://patch.msgid.link/20260708114354.753817-1-lgs201920130244@gmail.com
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions