Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1813024pxb; Wed, 20 Oct 2021 12:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA8lxi2MKJM5kuaG/3EPtH9KHsyHx0q4jk2xIg3/RFRXhyj4jqmCiu+Kn+DaVZ6/1momuQ X-Received: by 2002:a17:90a:1b2a:: with SMTP id q39mr808786pjq.219.1634757278292; Wed, 20 Oct 2021 12:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634757278; cv=none; d=google.com; s=arc-20160816; b=N7KObdzIDcg2wEYxfr0w/AQOLI5g6zPCpnFMqWIXGW6rxoSlWO3cGkUlRE63hb4w7c oXDJVNJVT1XmFMcm3igxs190Zx8619g44Z+5eospQkNemJpjJmuBtplczGHJShDodF72 u+jDJrJ1F6RKRMxA5et/4qm/DCeTrOLPw7n3cu3E/vi5jsKOcWiLIEpORf883RB1ybaE quHIL6n6HNJJ9KS4vWEtXdxYVXKkKkYW6TFrjqeUYrIlXhU3iFfRd+41fQ6Q1PNc69I0 6qZ3NvAwKV2JKJQeFn8Ph1VOhY1NbHZVzyAO9E7Lk4yhufeqybLcOcxTCumBqrWqRFzT epXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=97k6nO9jIcLyxnsbHVg+ApOH7JvVjNrIIhYSQHver70=; b=Q/i6W9HizOhD2x/rj7U0wDfmWq3K+ITd5qte4xtvbfJIWYPMDkQ28WDV5vzwkSN4RA GqRvQ4+9ivkUIDE2zUdqhJCcviStYUmvuGkQb94gyJ6OfEhgrL64paWE9Q2Qxrwg+TQ7 jo0to7jcNJi8d2kNWiHfx5LJnj2e6XiR6Uk+n896XhforJGXYuI0QEmWxOnFBbWJwpD4 OwsnS9JTqqZcmm00RNyr0cGUrYR5piTYCNaeF+OThu0uZFzCDB+q2NRryoWICBM8023R Q1+VAsDx0yqz0uT4da/Lki4zXHuMCCXHHV3h6PxrGDDRGbEGMKSEvhebBqvIj90f5p8Y MMNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rmCjhlUA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l71si3948565pgd.366.2021.10.20.12.14.20; Wed, 20 Oct 2021 12:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rmCjhlUA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231522AbhJTTPK (ORCPT + 99 others); Wed, 20 Oct 2021 15:15:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:59452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231455AbhJTTPJ (ORCPT ); Wed, 20 Oct 2021 15:15:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ED3D6611B0; Wed, 20 Oct 2021 19:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634757175; bh=HUeYEOubLIJowqLZcwwGkc9BEjtPIPaC7kQ8jsRtATU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=rmCjhlUA1OEDWQMapi13jzwRQnrM10QmCEHZvW7PQ9Sfhu15HDHr0xBKHkOFIIzHn cdnxHLtWh79AlLgrey6P1h9GaysjiQSpdKyZgZnBvBsctbn/sNbwcpE1UqYEqhSeOP HOhv52io1y6DiD1hGFdq6et4Ogsv+0hOpzVUcaSkJicg3lPbjzmizPAg4Z1rxr1uIr HoUbTiTLYraopbPbKrb10f+mZgIY5ZIIeCPkGI+rGTQds7WivC/7TczHZbvECrqRlu 0iSTEFxMZEKEMGY74ax6qOrSaLsDalom12y9T4wTolRvFNL9AtlvDXv16AbruT9HlG ipLe1wDpHNPTQ== Date: Wed, 20 Oct 2021 14:12:53 -0500 From: Bjorn Helgaas To: Li Chen Cc: Tom Joseph , Lorenzo Pieralisi , Rob Herring , "kw@linux.com" , Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] PCI: cadence: add missing return for plat probe Message-ID: <20211020191253.GA2631311@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 11:17:51AM +0000, Li Chen wrote: > Otherwise, the code will continue to error handle, > which is not excepted. In subject and commit log: PCI: cadence: Add missing return in cdns_plat_pcie_probe() When cdns_plat_pcie_probe() succeeds, return success instead of falling into the error handling code. We should have a Fixes: tag here to show where this bug was introduced. Look at previous git history to see the format. Maybe also a stable tag so this will get backported to stable kernels. Interesting that nobody noticed such an obvious bug until now. > Signed-off-by: Li Chen > Signed-off-by: Xuliang Zhang Since the patch was sent by Li, that signoff should be last, per https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=v5.14#n365 Reviewed-by: Bjorn Helgaas Thanks for the patch! > --- > drivers/pci/controller/cadence/pcie-cadence-plat.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/pci/controller/cadence/pcie-cadence-plat.c b/drivers/pci/controller/cadence/pcie-cadence-plat.c > index 5fee0f89ab59..a224afadbcc0 100644 > --- a/drivers/pci/controller/cadence/pcie-cadence-plat.c > +++ b/drivers/pci/controller/cadence/pcie-cadence-plat.c > @@ -127,6 +127,8 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev) > goto err_init; > } > > + return 0; > + > err_init: > err_get_sync: > pm_runtime_put_sync(dev); > -- > 2.33.0 > > ********************************************************************** > This email and attachments contain Ambarella Proprietary and/or Confidential Information and is intended solely for the use of the individual(s) to whom it is addressed. Any unauthorized review, use, disclosure, distribute, copy, or print is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message. Thank you.