Re: [PATCH 0/3] drm/i915: Fix double cleanup in error paths

From: Kory Maincent

Date: Wed Jun 03 2026 - 13:08:05 EST


On Wed, 03 Jun 2026 10:59:51 +0200
Kory Maincent <kory.maincent@xxxxxxxxxxx> wrote:

> Several error paths in the i915 driver incorrectly invoke cleanup
> functions multiple times, potentially causing double-free errors.
> This series corrects these paths to ensure cleanup is performed
> only once.
>
> Testing note: Only the DisplayPort fix has been hardware tested due
> to lack of available hardware for the other components.

Don't pay attention to this series.
I missed the point that if drm_encoder/connector_cleanup() are called it will
remove the encoder/connector from the DRM core list, therefore the destroy
callback will be never called. Which means no double cleanup path.
Sorry for the noise.

Regards,
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com