From patchwork Sun Jan 13 08:47:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 10761203 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 02FED746 for ; Sun, 13 Jan 2019 09:24:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DABF828DAF for ; Sun, 13 Jan 2019 09:24:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD9FC28DBB; Sun, 13 Jan 2019 09:24:53 +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,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 8F9C228DAF for ; Sun, 13 Jan 2019 09:24:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CC4666E4C9; Sun, 13 Jan 2019 09:24:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by gabe.freedesktop.org (Postfix) with ESMTPS id C8E1F6E4C8 for ; Sun, 13 Jan 2019 09:24:49 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.56,473,1539640800"; d="scan'208";a="291725798" Received: from palace.lip6.fr ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 13 Jan 2019 10:24:46 +0100 From: Julia Lawall To: linux-rockchip@lists.infradead.org Subject: [PATCH 0/4] add missing of_node_puts Date: Sun, 13 Jan 2019 09:47:40 +0100 Message-Id: <1547369264-24831-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 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: David Airlie , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The device node iterators perform an of_node_get on each iteration, so a jump out of the loop requires an of_node_put. The patches for drivers/gpu/drm/imx/imx-ldb.c and drivers/gpu/drm/sun4i/sun4i_backend.c contain some added of_node_puts for which the need was identified manually. Details are in the patch logs. --- drivers/gpu/drm/imx/imx-ldb.c | 25 +++++++++++++++++-------- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 5 ++++- drivers/gpu/drm/rockchip/rockchip_rgb.c | 4 +++- drivers/gpu/drm/sun4i/sun4i_backend.c | 1 + 4 files changed, 25 insertions(+), 10 deletions(-)