Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp877822imu; Thu, 20 Dec 2018 06:47:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/XYoWUWLKDSPQbyU+ge3/+EaEpEXPtO65E6VcQJdBP7PbXHP3EPudLlD1VhWnncDZnT5sD1 X-Received: by 2002:aa7:85d7:: with SMTP id z23mr25584876pfn.205.1545317242472; Thu, 20 Dec 2018 06:47:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545317242; cv=none; d=google.com; s=arc-20160816; b=Hr9GHPy5dKFY5Hn07UyNwf+K3epm25qn5LM2GbnaWofjdhSJ0p2S2Ik0kVZlYf8tA5 9wGlzN1sT4mUxVqMuvlmfoh51we9svMgPicTfdm/U0Lx3X+uXt6iiLIRx62aerRlZEXQ cx1ry7v5Yvgppe1QMWJQ413VbbgllwdKMXz1ErM7z9AfVfmudi2Gv5+7KW90ZwluoAsn WyS6JY9fHPpKlyhuglm/fYwV4B8qGuhjJNISnA4dhpqKAYByfRcQZ4iIB0L3Tla9Uz3i KtopLjM64mKmQ2weTdvSxcRuFX6fIhoTA9xOKtpoNxbzwXf9Kt5fztlXlVBwkIa4MFv0 yatA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J2pSDKn5NEy3ZcrmK/oANQNco+xQeaJ/PTqbaV7do9I=; b=t6ilfVNAZL3U9Vb1sWzw5Of4pkfKQTo8QfowKBuCnMiM4rsboDE4kSBBDhBb0NskGR isK1GsdkQS7fSrPzSXdGfttZZ8k2OANt3qXHbQOHhkSHi8QFtSaFfzgnYQnfhlrM45uj D3ihCD9svV8Y6I+KIliv5jP1GJ4gnH9rKlRk7/Q6HV2jxsN9S1zOzwL/jGw2/EaGAIYs VT6gTd1sKxs92OHwZHVFZ31FkFC/2/E5TLa6H6FC80+m4xINJnjm5L02NATDcf63j/sW gP8jzPlJIoi4ikBULqqlkrYIK7jvAaTiQqPy/feT2uCTSdJebNIe7pNyZS5kvtgSEnZO +ybA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="z/D2MDsb"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si18957022pgn.325.2018.12.20.06.47.06; Thu, 20 Dec 2018 06:47:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="z/D2MDsb"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732121AbeLTJkw (ORCPT + 99 others); Thu, 20 Dec 2018 04:40:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:33948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730057AbeLTJYT (ORCPT ); Thu, 20 Dec 2018 04:24:19 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D89E5217D9; Thu, 20 Dec 2018 09:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545297858; bh=QTWsgfAACdwsfEZxr+o3p+ORVeZdqSvn1DbhDW22l0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z/D2MDsbpz0zue6hXMHX1n7+QJI9it+8qKjbf/5cybyqDgULQpVKx2ygRL+EYmJRk HS86/0Gslg+oYK8KPuATi97+wKT0w+oNXGrKYj0xrza9uBGripDRofIuNI1XWTYljW EbksxSdQCk88XaesLRdCTNyM8d8PTk2Qn9zo8YqE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yangtao Li , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 43/61] ide: pmac: add of_node_put() Date: Thu, 20 Dec 2018 10:18:43 +0100 Message-Id: <20181220085845.505965381@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181220085843.743900603@linuxfoundation.org> References: <20181220085843.743900603@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit a51921c0db3fd26c4ed83dc0ec5d32988fa02aa5 ] use of_node_put() to release the refcount. Signed-off-by: Yangtao Li Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/ide/pmac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c index 0c5d3a99468e..b20025a5a8d9 100644 --- a/drivers/ide/pmac.c +++ b/drivers/ide/pmac.c @@ -920,6 +920,7 @@ static u8 pmac_ide_cable_detect(ide_hwif_t *hwif) struct device_node *root = of_find_node_by_path("/"); const char *model = of_get_property(root, "model", NULL); + of_node_put(root); /* Get cable type from device-tree. */ if (cable && !strncmp(cable, "80-", 3)) { /* Some drives fail to detect 80c cable in PowerBook */ -- 2.19.1