Re: [PATCH v2 0/2] drm/imagination: Fix leaks in HWRT data set handling

From: Alessio Belle

Date: Thu Dec 03 2026 - 10:04:49 EST


On Sat, 21 Nov 2026 15:47:18 +0000, Suyuan Wang wrote:
> Patch 1 is v1 with the Fixes tag corrected: the error path that skips
> hwrt_fini_common_fw_structure() came with f1f55ed3ffe4, not with the
> commit that added the ioctl (thanks to the Sashiko review).
>
> Patch 2 fixes the other leak that review pointed out: the 32-bit layer
> count is truncated into the 16-bit max_rts, so the SRTC and RAA objects
> allocated for layers > 1 can be skipped on destroy.
>
> [...]

Applied to drm-misc-fixes, thanks!

[1/2] drm/imagination: Destroy the common FW object when HWRT data setup fails
commit: 804817b9b4fba26c12fb8eb4edad4d4b99a2d848
[2/2] drm/imagination: Don't truncate the layer count in max_rts
commit: 502ea48d0d8fa5dd0c31dc449efb3d82deef8efe

Best regards,
--
Alessio Belle <alessio.belle@xxxxxxxxxx>