Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3646509pxb; Tue, 7 Sep 2021 04:37:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkLWof5b/T6q3XnwiHTTqQyl8SOraLGr5GIHdP1x6aa/ovz/ZeEjlxjamwgZzm9ppFsB2K X-Received: by 2002:a5d:8a0e:: with SMTP id w14mr13384704iod.94.1631014646759; Tue, 07 Sep 2021 04:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631014646; cv=none; d=google.com; s=arc-20160816; b=B7Re7hYLlzXuAxFAFrWtovVPCMF8w7SJp/hqxkU94jMJH9xl4fiK/UDQV1rNLPIAN5 H16kGwjne4BDWGmtIdX6fxC8OoUiCkupcYRhvNlZB3fVsYOJO3uCfZzdZykFNRoC8fVe fvp/POMdX5ag4osqFVz7UUwE0mC8fF4RVoKBspPrYJ9nxSs/JDjpHIHsmiXD4bgq+LUL xS6j4jwVyZEgjXqA8GSZl8Cz6XPqRLWGRvwZOiI4ZHh1tXQF7tTSTMoB5sSncbrMtG6k paZd94RO/v+S7pWqPnZdMsdj/tBjw0fpxS9s09ByXPKqJLxhZ/R4FGOEX6Cq/yelwri7 aXjA== 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=3r0WNKQXioijAnNNh4x/EBjAgHnM9dbiLmcqkeiNl/w=; b=f9dQTZWfLjeUGG11wXaO/jtwdkISzoOKVSpPKrs7HG3+gnPHdm7B8P+ajqLkR2B0N/ m7aimInlAAzqEiZfpKXs61EHEG2U4FuXmmDmQCMvqaRkPZQdUSNzDGeJEzl3+B3ZeLGc HVuSEikm3Kvrecg0ccI4YTU1m8IAbOuA9xduQ2P0DAVKJBVcHg3AcmmcU//7m4y43qI/ jPrMP6hb86vIdjrxFWNcMuuuiUASOk7F+8rsjHP1tJ7VEyBTrNY+1/b8HIzgJC7cfwJj 3/XGYRLHtN/PY3xDEC1Kip0oPDXSjco37l5FC3ibVVMCXdSRj6uWHesi4KFNBLP3QgSK iZGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sZpmFKcR; 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 x6si11820306ilv.93.2021.09.07.04.37.13; Tue, 07 Sep 2021 04:37:26 -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=sZpmFKcR; 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 S1343848AbhIGLZO (ORCPT + 99 others); Tue, 7 Sep 2021 07:25:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:44398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244317AbhIGLZN (ORCPT ); Tue, 7 Sep 2021 07:25:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D782610FF; Tue, 7 Sep 2021 11:24:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631013847; bh=+upmPCkRhPM+Pwqhf6/lViXSAyGhcvV26ITuL5tT+Ek=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=sZpmFKcR7IaO2ztw7+k5Ozy5Lp081oRiqMMSmn69Y2I9QiOVvshOGCLPQIznSBvmW ipO/GVR3iq5WGhoYfEVH6B6eayBhf38jE9N9bAur8iwHP5LCYNeK17ujEOW+VC5D6x sEuoAgcONere0v0QMNN8iCN/tMOfud8qi+0k5Zq8dqHogLupmhi7OBGqNZxd7cL0dU pnJ00Gfl8Eh2Vj/STXy7YBcf8B257W5t4+jWamTtD5xaz4EFXFvzfgu44G4KFe0RF7 71RTADvDtW9bE16DwHbb43gYE3eYhDmdQu7lGrj7xxKz1LldcOK1qUSgRKBiIakVQ4 H4041Xt9q1AFQ== Date: Tue, 7 Sep 2021 06:24:05 -0500 From: Bjorn Helgaas To: Xu Wang Cc: mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pci/hotplug/pnv-php: Remove probable double put Message-ID: <20210907112405.GA722145@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210907085946.21694-1-vulab@iscas.ac.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make your subject line follow the previous convention. Figure out if this is a "probable" or a real double put. If it's a real double put, we should fix it. If it's only "probable," that means we don't understand the problem yet. On Tue, Sep 07, 2021 at 08:59:46AM +0000, Xu Wang wrote: > Device node iterators put the previous value of the index variable, > so an explicit put causes a double put. > > Signed-off-by: Xu Wang > --- > drivers/pci/hotplug/pnv_php.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c > index 04565162a449..ed4d1a2c3f22 100644 > --- a/drivers/pci/hotplug/pnv_php.c > +++ b/drivers/pci/hotplug/pnv_php.c > @@ -158,7 +158,6 @@ static void pnv_php_detach_device_nodes(struct device_node *parent) > for_each_child_of_node(parent, dn) { > pnv_php_detach_device_nodes(dn); > > - of_node_put(dn); > of_detach_node(dn); > } > } > -- > 2.17.1 >