Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4536278imm; Mon, 17 Sep 2018 16:04:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYfu3mqv/Vwe6cQOECllgd55c2TObFFjm4h41NItXGCf+fQjc561fQjqNu0GV0ilOfLgCXO X-Received: by 2002:a17:902:e190:: with SMTP id cd16-v6mr26638650plb.305.1537225458425; Mon, 17 Sep 2018 16:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537225458; cv=none; d=google.com; s=arc-20160816; b=ttSVBhm5TFagvxUK+s1U1xfkfdcxBrRb4HeMCiyeak67+pzC9d/pQBzhhgyVcpSVZE nxjigko8P9Ghe1EpcX8IU+KXo1MK9X2UafTGNsP9Tgh41mHjJX/ItbOOeRCW0xx9Slye 1k/xG0PQoAHOw8pGdRTKb4kjCstfjuhlOBfzXGnCzPss5/zEvVlmbKl3IO/Bu31PMnNL 5mTh85DkatKkJHON2LuGLFOydaztlUU9FiAbBWDko5x8FJkDnwsaDhm1pN56EDEvCiVX 7rdpAt4+JkpUU6UyrPIvAD0aIWW9VLT0J8h7Q9Sg3IdKZg+va8cne1bLidSVjyQkxvH5 sQLg== 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; bh=IqIr+88lcv7ufYn3SHWWN3spCgq8Qg4UZm+O+uRDltQ=; b=JNx3bIHGvuxl61Lod0Ty1p79iOEOrbJEQ1BNLng5wZgSq+zroTrCK+cc8ioMDzyy5G uFjhGJ0he7HZ2TdRoIbFPBJpU4V9kLvgrXZ4rzNANNxYFvE3rmqYlc+dXOV5yaQr3LWs NF66cn71JNihd0h7Q/P7Aw3XUnrcRJP1otBCNBAwA0iNkCeaFhj2oQQpBJC5BdOSwwdQ t0BtE4+oT2Q0SiXchXGad6e9pRW1WoELtTZNVdkFyFsd264fHOnDOXviJLZkBpZ6GzEp Fc4c7q7RlhJLgmhxZ0W4l9bdwaeoP/EmNz086j7Zs0n6p5Q3sE6CmjcwPS3WKSzB4c7D lqZw== ARC-Authentication-Results: i=1; mx.google.com; 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 m184-v6si16484683pgm.265.2018.09.17.16.04.03; Mon, 17 Sep 2018 16:04:18 -0700 (PDT) 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; 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 S1730671AbeIREdK (ORCPT + 99 others); Tue, 18 Sep 2018 00:33:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48968 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbeIREdJ (ORCPT ); Tue, 18 Sep 2018 00:33:09 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 758F4C03; Mon, 17 Sep 2018 23:03:41 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicholas Mc Guire , Paul Burton , Ralf Baechle , James Hogan , linux-mips@linux-mips.org, Sasha Levin Subject: [PATCH 4.14 075/126] MIPS: generic: fix missing of_node_put() Date: Tue, 18 Sep 2018 00:42:03 +0200 Message-Id: <20180917211709.129879473@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180917211703.481236999@linuxfoundation.org> References: <20180917211703.481236999@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nicholas Mc Guire [ Upstream commit 28ec2238f37e72a3a40a7eb46893e7651bcc40a6 ] of_find_compatible_node() returns a device_node pointer with refcount incremented and must be decremented explicitly. As this code is using the result only to check presence of the interrupt controller (!NULL) but not actually using the result otherwise the refcount can be decremented here immediately again. Signed-off-by: Nicholas Mc Guire Signed-off-by: Paul Burton Patchwork: https://patchwork.linux-mips.org/patch/19820/ Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/mips/generic/init.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/mips/generic/init.c +++ b/arch/mips/generic/init.c @@ -204,6 +204,7 @@ void __init arch_init_irq(void) "mti,cpu-interrupt-controller"); if (!cpu_has_veic && !intc_node) mips_cpu_irq_init(); + of_node_put(intc_node); irqchip_init(); }