From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 8B1603BD657 for ; Mon, 27 Apr 2026 13:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777294975; cv=none; b=afA573rIvdUqUOiFaEMfDbr3k6x4OMuNkGTl1Bxp0vhEfsdS+g7/Jie8fcZm62R5ho3V6CZoskwt4DdGWTVoIk5m2BV3P7Y1ZhYN1j6Us+rOFBPrCkBlA2PVKP+n2Bm+JRJ/twjc8AemonMVvFOguxbBgVNtiIXX1OJf8BkvNCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777294975; c=relaxed/simple; bh=qbMw18GFEx8URm/DbOiBVp5PfU4iGmIruW8mcWdN3pc=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=FLt+JWvqCCqj79w2b7GaMSpUEF0K3VoZI7Qwprlk9BHV1tVO/rjIbbjac9AcaWJAstjMHd1bhWrw7yyR6L8/P6nExj2FB+VrpkToBj1AaXUvKbffMUSF1oXrojOkOBhSStHyKBZvDMqQge2NsIE8ga1cwqtfoYoD37ECMASl5x8= 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=fUFooig8; arc=none smtp.client-ip=185.246.84.56 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="fUFooig8" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 0708D1A3442; Mon, 27 Apr 2026 13:02:53 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C8AE0600D1; Mon, 27 Apr 2026 13:02:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 08AF31072804C; Mon, 27 Apr 2026 15:02:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1777294972; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=qbMw18GFEx8URm/DbOiBVp5PfU4iGmIruW8mcWdN3pc=; b=fUFooig8D8oNsqb+BM0OIXTMOO9nyVLT7DCsDHhSzYsOxqTeS/EZ9de48bVE/r1hyXdqvJ h49GIiYYaeIILSD6qg5ybnbsR+3VuKKPK3dp/dnx/4YkKUjksPOHCwWfHtw1zGQ54RkMs0 l/au7S4cQ/rSW8ryJe7b+8jPckGcR5f6mfpVcL5AIzWhlITWq95VjcCQxSQbOTwKy5QMJU Ng4Hbvo9T//Ww/qtya2ljnCba/gKEZ0oizVPc//pivIMlnp2uBrZTrSNbuOEabWVjbku/z AqraOJoA0kuN4xiHJyrGnPZXYhQJaqGPRGuMPuEDYpIpAhXNURJh+QpxGXLtlA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 27 Apr 2026 15:02:49 +0200 Message-Id: Cc: "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , , To: "Myeonghun Pak" , "Alain Volmat" , "Raphael Gallais-Pou" From: "Luca Ceresoli" Subject: Re: [PATCH] drm/sti: hda: Fix bridge leak on component_add() failure X-Mailer: aerc 0.20.1 References: <20260424121206.14558-1-mhun512@gmail.com> In-Reply-To: <20260424121206.14558-1-mhun512@gmail.com> X-Last-TLS-Session-Version: TLSv1.3 Hello Myeonghun, On Fri Apr 24, 2026 at 2:11 PM CEST, Myeonghun Pak wrote: > sti_hda_probe() registers its bridge before adding the component. If > component_add() fails, probe returns the error directly and leaves the > bridge registered. > > The remove callback unregisters the bridge, but remove is only called > after a successful probe. Remove the bridge locally when component_add() > fails so the probe error path matches the successful-probe remove path. > > Signed-off-by: Myeonghun Pak Duplicate of [0]? [0] https://lore.kernel.org/all/20260423200622.325076-1-osama.abdelkader@gm= ail.com/ Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com