From patchwork Mon Mar 20 22:18:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 13181968 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0289C6FD1C for ; Mon, 20 Mar 2023 22:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zJWHs1Lmz8F4md9FNa8hA8tIVpNzeof46Jli9qnpkw4=; b=pnmr171dJVR7lR 8M8vWWJrcl4pAZIq/58OjGYHPllYTXySVmuKcefbSK+LwESLOqANxVh7AUzuqnF0gvtyxprSfrEud 7IBMesVhA5U+BBp0VbyC4/dc+B58luj2fJ2ApFQ3NosArzl64ttd36k8lb3S0arPdt9MlJt20RR47 o+ryuXEQ7u6eYJKO28UPJwFpgL4bv7djAOGkLVCL+3kZKmQcVQnkV+wpQPCvv6sF+RkB/AKM35cyY 8gXfbjlU0eLT4nLNyKKDu5pqCuXIXnZ3jmmw9IMAWbKPz9VDCCMxqwWmU+54pFKjPiQ/ATOB8Up/H hTJzy6OnzfytWNFccPmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peNpt-00Ad2R-0L; Mon, 20 Mar 2023 22:18:37 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peNpn-00AcwF-20 for linux-arm-kernel@lists.infradead.org; Mon, 20 Mar 2023 22:18:33 +0000 Received: by mail-pj1-x102d.google.com with SMTP id x11so11771388pja.5 for ; Mon, 20 Mar 2023 15:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679350709; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RtNlHvoQMaVv/dozA/BthInPSN442N/1J5oP/tOY4+c=; b=sSZs+H5I+LRhKeLPAp76IZjxcWtFI8ncSieV5M1bs2iCtjzieDb3vTSsn62wZ77EvH 46BKFcKF6z25XNsMMIPw+t9bRsVpOb+2G5KZGxCnN1MkhncgkDKVCn6pUKRsPR0FDlo3 X5IDNfvcldMTp1A+ilN3CnUHSxdsWCa8uJ2UqhNxW8INtg4WNdytkXJsItCv148cHtjD xUvM9KbXeF2xaLAoSOKrXTTKfXQ0yQj2WyYL104mbwE/Xfp1PgR8z/8JisXQA8DPrSuI 8uw+tFGyVfQaG/G/Ink4AvQKVbFtgFyYgMrVnx6eItKVvBTB1TXTuQsJqgLNFoK9J5uQ DP3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679350709; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RtNlHvoQMaVv/dozA/BthInPSN442N/1J5oP/tOY4+c=; b=cJ07C1LWMCNgqA8KgOX6AM/eLKWyJnRBRGrBbDp6/DE2zZT/6G0tUOsfh3BEKiwOPI vPQU8ejDeTrSlLmoXFhll47P5M2gSavNnhJ/6clFP/fi2kOUaHVnEvWYdv7FX+P6zMA5 CekzN+OVrrsW2CgN172k4W/QRNNgl1G40/I4YATOg8yb3a1s6Ocsi4/06VYkhTsMiRpk H9H81zgEpMgjc5Y18o9Ffxcn7cHx4vV6W5u3k4wEIpPBPNZ18hTPokbmLiHYjcOL+C4T 6VfjhN0kPQBBX5r6B4nIFwK2EB3LvL8ZdQRrIn7qnVcTDWb0Ci2LqrDuvnsEM0voKtPe XClA== X-Gm-Message-State: AO0yUKWLBoy69e5+otUA0vPW3lK9cqvh8DBgB3nzueEx7XnLhRIxF9Ub scAaAh2OSdLkzJ+KVrEY/KibzqnQ/5NltwKnW+M= X-Google-Smtp-Source: AK7set+bDv8ICfEy1QdT4thKkqCwduccw2mTy+wgcIpOTHrXPdu/uwkpo/eTLScseRGQ4qOd+VsbZw== X-Received: by 2002:a05:6a20:7f8e:b0:d5:213a:476e with SMTP id d14-20020a056a207f8e00b000d5213a476emr22916516pzj.51.1679350708903; Mon, 20 Mar 2023 15:18:28 -0700 (PDT) Received: from p14s.cg.shawcable.net ([2604:3d09:148c:c800:4ab5:5131:bafc:4428]) by smtp.gmail.com with ESMTPSA id e15-20020a62aa0f000000b006259e883ee9sm4459196pff.189.2023.03.20.15.18.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 15:18:28 -0700 (PDT) From: Mathieu Poirier To: andersson@kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, patrice.chotard@foss.st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, arnaud.pouliquen@st.com, hongxing.zhu@nxp.com, peng.fan@nxp.com, shengjiu.wang@nxp.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] remoteproc: Call of_node_put() on iteration error Date: Mon, 20 Mar 2023 16:18:21 -0600 Message-Id: <20230320221826.2728078-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230320_151831_738353_969EB0B5 X-CRM114-Status: UNSURE ( 7.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset adds missing calls to of_put_node() when prematurely exiting from a loop driven by of_phandle_iterator_next(). Some help reviewing this set would be appreciated. Thanks, Mathieu Mathieu Poirier (5): remoteproc: stm32: Call of_node_put() on iteration error remoteproc: st: Call of_node_put() on iteration error remoteproc: rcar_rproc: Call of_node_put() on iteration error remoteproc: imx_rproc: Call of_node_put() on iteration error retmoteproc: imx_dsp_rproc: Call of_node_put() on iteration error drivers/remoteproc/imx_dsp_rproc.c | 12 +++++++++--- drivers/remoteproc/imx_rproc.c | 7 +++++-- drivers/remoteproc/rcar_rproc.c | 9 +++++++-- drivers/remoteproc/st_remoteproc.c | 5 ++++- drivers/remoteproc/stm32_rproc.c | 6 +++++- 5 files changed, 30 insertions(+), 9 deletions(-)