Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3556256pxb; Tue, 7 Sep 2021 02:17:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM5a6kCybOdeXe2OB49dH3Y6mrbtM4Bv80FyNEs6js+8UsRxJmACvkZGhImQ+mk7GjAM4S X-Received: by 2002:a17:906:8450:: with SMTP id e16mr17797375ejy.305.1631006257566; Tue, 07 Sep 2021 02:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631006257; cv=none; d=google.com; s=arc-20160816; b=r6jnjDS7n0VZe20v7fJyNIT/vsNmelRl73PaTYbN8JxgwNniTRkHPkguWk/QFq1Xka sp7yKrmF7gkVx68Q73Xq/vDMvjrIcuylNcIWmF4DtLGEJ9f3WXiB10HVmVgw9oXJ/ivM 2Ew7I9T6DlQJ0Ib6+RUk63n5Ah+hCfRPtSB2I8iVyvKyWLMIwSMoh2Ad+jJ/JG5S1qIP pPyhCv9F8g/VlRRo2J8PKOCaB4smulc1s1Wu4oykwjfDAErFWSQ9aQV/fY7MTS+KmMPh QK9M6z45esqTxfqI1p4qq8tLjjf+TtGVHa9G7daUxt5BHzKj/KwJy84PNfVAimnkGSFx WFww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=tLKBkmaCVfUR545v4Pbt4v2Y6gp1lgFdEtxGsoTVAmM=; b=HnusdMdrFSKrrrQas9EiEuN6nIojRWkIj1z+6+hNRCJdkEuzsgmKUMpbgA9PARQsSs LQVWdS9Ojw4WZq7zi+wxyzxdvvXB6pjC09C2iiqGEfj0S6oJPfYACDaYJv+BCfGA2BY2 pMA/jQqSBM1Cp/O62UqoNnWhIlbD+fRnQGVBj5kHc+iBv0ODmT6CQmuVMOGWG8k76V55 XwpI5IOqfRUwR1zCa0J/Z9RKYJftzPwF+SHKgO2buO04U1/Z4wzv4DgzwPaDED8IOifZ KhKf13znwjHufGGvRpPN4gj9NKs06LFM2FeZ9vwauudmbw/+ERk9nd77NSXQGNcIezz+ aKZA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si10265326eji.566.2021.09.07.02.17.13; Tue, 07 Sep 2021 02:17:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245002AbhIGJQZ (ORCPT + 99 others); Tue, 7 Sep 2021 05:16:25 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:40694 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244756AbhIGJQY (ORCPT ); Tue, 7 Sep 2021 05:16:24 -0400 X-Greylist: delayed 896 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 Sep 2021 05:16:24 EDT Received: from localhost.localdomain (unknown [124.16.141.241]) by APP-03 (Coremail) with SMTP id rQCowAAXOREEKjdhJZhwAA--.33777S2; Tue, 07 Sep 2021 16:59:48 +0800 (CST) From: Xu Wang To: mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, bhelgaas@google.com Cc: linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pci/hotplug/pnv-php: Remove probable double put Date: Tue, 7 Sep 2021 08:59:46 +0000 Message-Id: <20210907085946.21694-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: rQCowAAXOREEKjdhJZ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16.141.241] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCwoRA1z4kZHFJgAAsU Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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