From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 795E23403E0 for ; Wed, 3 Jun 2026 09:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780477236; cv=none; b=CE81zDeq3kUBl+cS20oIYKM0CSV4oiLjIq0g/szXJu3uy0NRigGuhTqsGdNNcJTU9bB0dODdmd+dwkM0GtbSsclihg22D9LrhmcVVfBOK3sxyXWLv2yfc5a6glWMqohPyqpfn/lLz/RCu+C3Qh88pPWwn4jG2HeEdAmf2hHtn5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780477236; c=relaxed/simple; bh=I90kIma1baGqh9XocN4JuQiwZ+33rK0xtVuCfEweGOw=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=tNASEXSyusGCWJo3lFB/ReeGTJZkXhpoWFK/YNfOBt8r4nSaqftLTVI/+0Lg9QevdSg6ZdLzicFRG4aLeasxx1rHRlNWxzLNC4zz6bf3Sd3fw2haJNmPH/FdQKGcIIxS21+CU9wKZPKuq95kXIoR7wNFsZiIAMP97DFR99ZLbxM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=CSwxv78H; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="CSwxv78H" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id D58274E4164C; Wed, 3 Jun 2026 09:00:32 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 8E2B05FD24; Wed, 3 Jun 2026 09:00:32 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 819EC10888413; Wed, 3 Jun 2026 11:00:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1780477229; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=7Ps8c5Pf/q4KonzIzGtVuavWdKey0/RYtJqxkkHgYGE=; b=CSwxv78HfY6ST3O/alIYSifZe4N40KbAE3LXpQ8APQkvfgfR5BVLlrC38t4B4jPnspJhyu ZWmjvNYZ0991xzLE6T7ZEH3iRx/7FeW1n0vk5dZ0/SQD8C+bXUF6iVVs10bAPG5vKp92/C 9YiEhDWbQQm+aKS1vyEiskHx1Of7JEB0F/ge9Qnd3LUZYGHqYi6Dk+uJzdn/2D0torHUP9 UFUJiEq+CTvXezu+z1HGsRO9jNjLWAUDKrJ+FX0KAAgCgSGy98xMLaZgn2tHwy29iAWm7E cTDyMhBvO+8+2ggTqEyDQ9ikNQmvkBAwqiFPbWgBEAF0GBNaTmOFTxFOH7tg2g== From: Kory Maincent Subject: [PATCH 0/3] drm/i915: Fix double cleanup in error paths Date: Wed, 03 Jun 2026 10:59:51 +0200 Message-Id: <20260603-fix_i915-v1-0-7479ff64e705@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAftH2oC/yXM3wpAMBQH4FdZ59pqtiy8iqSZg+NitCGlvbvh8 uv354aAnjBAzW7weFKg1SXkGQM7GzchpyEZpJBaaKH4SFdHVV7wwqqhtKLSWhpI9c1jyr6rpv0 djn5Bu797iPEBpzmSw2wAAAA= X-Change-ID: 20260603-fix_i915-5c3d8c09662a To: Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , David Airlie , Simona Vetter , Chris Wilson , Eric Anholt , Dave Airlie , Jesse Barnes Cc: Thomas Petazzoni , Louis Chauvet , Mark Yacoub , Sean Paul , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Simona Vetter , Kory Maincent , stable@vger.kernel.org X-Mailer: b4 0.15.0 X-Last-TLS-Session-Version: TLSv1.3 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. Signed-off-by: Kory Maincent --- Kory Maincent (3): drm/i915/display/intel_sdvo: Fix double connector destroy in error paths drm/i915/display/intel_lvds: Drop redundant manual cleanup on init failure drm/i915/display/intel_dp: Drop redundant intel_dp_aux_fini() on init failure drivers/gpu/drm/i915/display/intel_dp.c | 4 +--- drivers/gpu/drm/i915/display/intel_lvds.c | 14 ++++---------- drivers/gpu/drm/i915/display/intel_sdvo.c | 16 ++++------------ 3 files changed, 9 insertions(+), 25 deletions(-) --- base-commit: e1696f1fc99dc0ff761a012230587b23dec064fb change-id: 20260603-fix_i915-5c3d8c09662a Best regards, -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com