Re: (subset) [PATCH] drm/imagination: Fixed oops when misusing ioctl CREATE_HWRT_DATASET

From: Maxime Ripard
Date: Fri Dec 15 2023 - 08:13:26 EST


On Fri, 08 Dec 2023 16:30:19 +0000, Donald Robson wrote:
> While writing the matching IGT suite I discovered that it's possible to
> cause a kernel oops when using DRM_IOCTL_PVR_CREATE_HWRT_DATASET when
> the call to hwrt_init_common_fw_structure() fails.
>
> Use an unwind-type error path to avoid cleaning up the object using the
> the release function before it is fully resolved.
>
> [...]

Applied to drm/drm-misc (drm-misc-next-fixes).

Thanks!
Maxime