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

2023-12-15 Thread Maxime Ripard
On Fri, 08 Dec 2023 16:30:19 +, 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

[PATCH] drm/imagination: Fixed oops when misusing ioctl CREATE_HWRT_DATASET

2023-12-08 Thread Donald Robson
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