Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp209801lqs; Thu, 13 Jun 2024 08:05:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXc5Yi3e8lMwD5njSr2Y6/LeddbP8mr8Sn0rqd7FPR2+0UL6G1ptGAxcw0gmGALiT8SBnKyWdBCKOj7TXNtm4puMECxDjOqgDMq3muPmA== X-Google-Smtp-Source: AGHT+IHDDJQnUlct0aVCRG6GEuy23c4sJgxbcNhZlfIjYrUwvZZzLH54/mJqbfUARIXHk4D62844 X-Received: by 2002:a05:620a:2944:b0:795:5b5b:ed2e with SMTP id af79cd13be357-798d03b767emr11680585a.27.1718291127671; Thu, 13 Jun 2024 08:05:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718291127; cv=pass; d=google.com; s=arc-20160816; b=e50/IbLco+oWK9+0+OV6avB/4NmqB9ZGC7P1fLwucnpSB+NDApX/N0juFPEhwl/0N6 iN1JQ5wBSmzxavY3oif2gAcfZiEKsNdxwPnCnilmnlqJz80TJ3akItTnAs66jbLvfbxr 5z/sMWj3TJo336UjEmGlTQIKTKyciM6bGp0mtMa77NPxSxRkkt4o84e8HaogPdG4Foyt SmAnnil2DFidLTiaRe3nEbwUIBgi5x5iSkIs6oFHfUMlss9DkTc5v1Acf6rY5HWsSklc 7ZyUqa210pKjwL02kp0fZRES1SVTyOA6iAhJ6u1QE6u3alfURVXoy3yb1VpowPKOFuVJ K/sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:date:message-id:dkim-signature; bh=N065K9zNHNGpuRaLl+nprLkgcSGQ568ihUQMVU2BLJg=; fh=9T3RJJA2F1aEUkloc8qnxKJEggnEuJyOeyADbmow/O8=; b=dTfdPZChIfIRw2kf/Fgh30g1QCxySb56m7CZWP+k8ggVddwiF6ptA6T23E3BpInTeo /OEnQPH0QtI8frvKAKM2LtjbGgvEa9/TEdTZNT0f8ShF58Un5X2TcvSa+Rv/hajLVUgc JM6DmDbt15YA7/r6K7A51dqL06cuzKS/amc1vinwCoHmdVONdF0Sv4I7KU++rc5lFtM9 1LwEIn4zazbXAENHTrHNryT2yPFfjzBx1H+yWty7FD7YasrLB7nJhKkotkzLDmW1RRMw 9qk9CM7YhzpqfVRKSEcxJHY5HCKBzwUMpkbzQH+Am5SVMZj/qTWi/QShx13fEKKyn+28 BZ2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EllD0SyD; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-213491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-441ef3b9e33si17654241cf.37.2024.06.13.08.05.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:05:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EllD0SyD; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-213491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 640031C225D8 for ; Thu, 13 Jun 2024 15:05:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6BCC13D524; Thu, 13 Jun 2024 15:05:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="EllD0SyD" Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) (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 49842148FFC for ; Thu, 13 Jun 2024 15:05:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718291119; cv=none; b=WtEsF4u9d+tcT00CANcypqnAhhVt8Elr+l9xHHtoYUFkS+0ZI6bZdhRu5Zmz6Htd1HbEsD76IAXivqbyM6llgv5yQxokn5ykHwuV0wDdHDj2SSO7O8CxH6c6YOWwfxHprFOGfKoh6UVFSG9TgHNBhMlFQcegWQLI12xj0XGhfp0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718291119; c=relaxed/simple; bh=aZrqo1QdvlsVzHr8N4a87ImSH7QfmCAPFz6ktnixMRI=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=VJiwpMpegi38DCHp2gSDgEjr9dWmq6O+rdBYSvzrU06Ts7en9ehuXGY8x4kSV11YMggtJ21EkxnQvrETeDFcXTD0ZpNNOLcYdYxPX98HlxrRZZa+ttV8+0jSggZKxo+dpDsuRKQNicomxvD+v6gqvYOKcUeMd93zze1WGE9vgC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=EllD0SyD; arc=none smtp.client-ip=95.215.58.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: christophe.jaillet@wanadoo.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1718291114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N065K9zNHNGpuRaLl+nprLkgcSGQ568ihUQMVU2BLJg=; b=EllD0SyDBeMkOGeaIaxZmqcKY7M1zqEgbzoIkCaHrMOAvYQYbWZakznOm2clrE5nyVWOl6 eyUUR4aR/U3is3tXsblYmq7dT8Ck4YpakP8v/cayQlSkoSLy7HRNwicCpJOqO3nH50pj9K cJGZ9Kmle0+PXG9xQmxwu8+6MjnRVOI= X-Envelope-To: laurent.pinchart@ideasonboard.com X-Envelope-To: tomi.valkeinen@ideasonboard.com X-Envelope-To: maarten.lankhorst@linux.intel.com X-Envelope-To: mripard@kernel.org X-Envelope-To: tzimmermann@suse.de X-Envelope-To: airlied@gmail.com X-Envelope-To: daniel@ffwll.ch X-Envelope-To: michal.simek@amd.com X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: kernel-janitors@vger.kernel.org X-Envelope-To: dri-devel@lists.freedesktop.org X-Envelope-To: linux-arm-kernel@lists.infradead.org Message-ID: <120ffe3c-0240-4f93-a220-e0df565bcdbf@linux.dev> Date: Thu, 13 Jun 2024 11:05:01 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] drm: zynqmp_dpsub: Fix an error handling path in zynqmp_dpsub_probe() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson To: Christophe JAILLET , Laurent Pinchart , Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Michal Simek Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org References: <974d1b062d7c61ee6db00d16fa7c69aa1218ee02.1716198025.git.christophe.jaillet@wanadoo.fr> <5288867f-ee45-4930-bde0-14b24b878181@linux.dev> Content-Language: en-US In-Reply-To: <5288867f-ee45-4930-bde0-14b24b878181@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 5/20/24 11:05, Sean Anderson wrote: > On 5/20/24 05:40, Christophe JAILLET wrote: >> If zynqmp_dpsub_drm_init() fails, we must undo the previous >> drm_bridge_add() call. >> >> Fixes: be3f3042391d ("drm: zynqmp_dpsub: Always register bridge") >> Signed-off-by: Christophe JAILLET >> --- >> Compile tested only >> --- >> drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c >> index face8d6b2a6f..f5781939de9c 100644 >> --- a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c >> +++ b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c >> @@ -269,6 +269,7 @@ static int zynqmp_dpsub_probe(struct platform_device *pdev) >> return 0; >> >> err_disp: >> + drm_bridge_remove(dpsub->bridge); >> zynqmp_disp_remove(dpsub); >> err_dp: >> zynqmp_dp_remove(dpsub); > > Reviewed-by: Sean Anderson Will this be applied soon? The patch it fixes has made its way into the stable tree already. --Sean