From patchwork Wed Nov 21 13:17:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 10695119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 90FC41709 for ; Fri, 23 Nov 2018 07:41:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 825DA2BCA5 for ; Fri, 23 Nov 2018 07:41:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76B132BCAB; Fri, 23 Nov 2018 07:41:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 412F12BCA5 for ; Fri, 23 Nov 2018 07:41:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 12AA16E3E9; Fri, 23 Nov 2018 07:41:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by gabe.freedesktop.org (Postfix) with ESMTPS id E14646E564 for ; Wed, 21 Nov 2018 13:17:27 +0000 (UTC) Received: by mail-pl1-x641.google.com with SMTP id y6-v6so5531207plt.3 for ; Wed, 21 Nov 2018 05:17:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KkU0+Dae85pPY7GfTmoaU9IRRYDbrx5haffTjaBbHrY=; b=nmusti4MikIp2xV01MX5dNY7rGjBin8iuGbOye3ZNrrAMBS+7HDb8EasQyV21NsMF0 YwSQ5M4VUknpGR1XzuaQ2vswip8D0uwTxpCOFVQWYYxU3mN7LQkXZcqjgKxO4lvDItgb X9fLKaZqAJeLnd6sWsWKKiMma9tFqLYz9hpDn7SDDNTC0Jd2L7lfBcu2k2mpgBz70UrY 2ZQzJ4iKREJ3ZUU9JsY2fwFwqGE6OW7TTwiXppFKY+pRCkL2Nicgvl84WoH9mjZsZScJ nXGl7v/cd+6DvnEzvf1FVlmt572s7lt5FqIiab+1hT7TnfiiSpL0oWBKSimU7ePCmNfA 787g== X-Gm-Message-State: AA+aEWZUYgPnFEvLqeuQUlGD8P8TEh1H2rVNsHCQ/YdK6RGfyB7iGl01 GKMXKAiLB5C/a2pDN6G0a5s= X-Google-Smtp-Source: AFSGD/UtYhv27cXp13MWCw/nRp+nmVimP2lgimBQlHOrv/X9g9b7i3BI2KxgFlfP+g5UTa06IJQl8Q== X-Received: by 2002:a65:47ca:: with SMTP id f10mr6090833pgs.166.1542806247543; Wed, 21 Nov 2018 05:17:27 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id q8-v6sm92214081pfa.18.2018.11.21.05.17.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 05:17:26 -0800 (PST) From: Yangtao Li To: eric@anholt.net, airlied@linux.ie Subject: [PATCH] drm/pl111: add of_node_put() Date: Wed, 21 Nov 2018 08:17:23 -0500 Message-Id: <20181121131723.22431-1-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 X-Mailman-Approved-At: Fri, 23 Nov 2018 07:41:29 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yangtao Li , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. bl_idle_init() doesn't do that, so fix it. Signed-off-by: Yangtao Li --- drivers/gpu/drm/pl111/pl111_vexpress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/pl111/pl111_vexpress.c b/drivers/gpu/drm/pl111/pl111_vexpress.c index 5fa0441bb6df..38c938c9adda 100644 --- a/drivers/gpu/drm/pl111/pl111_vexpress.c +++ b/drivers/gpu/drm/pl111/pl111_vexpress.c @@ -55,6 +55,8 @@ int pl111_vexpress_clcd_init(struct device *dev, } } + of_node_put(root); + /* * If there is a coretile HDLCD and it has a driver, * do not mux the CLCD on the motherboard to the DVI.