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 B4573C433FE for ; Sun, 2 Oct 2022 23:06:30 +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=dzbyLog8iJj7w+nSicmudeLDMreYvGXhOAIaQl8kP54=; b=zcmVT8l5jgFf0v pNvoCg9p26GJAkjcsfPtjYOSba6VjRX7GmEWkqCWLkxUYNURgGAoX5PbwdeEz0RvlG4+NnE0aD/Iq v88NbkEn9uJxg9Cly+gWazc1C4GtFZ+o0f9lcMVtUQUOKYxxWARwkbhRWM2B1PJ61ZrkkqlKFvQH/ 0ztCpPmY5nchUTcRFAyNrRxL1I54Bb6SwgeKFNh8eZB5mNbO5U5cStwcQU5ZZKcd5fRBPfnd5lLL4 ezBYKAo1k/8WnIISg485qUxkhTW6/LvACRoyKjbHKHcoEPa2dLavCm9r8W3HQKLk2BluChHFOiDWx IBxpF5ODos413siT+uKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1of81Q-002wYC-R6; Sun, 02 Oct 2022 23:05:21 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1of7qF-002pYn-KW for linux-arm-kernel@lists.infradead.org; Sun, 02 Oct 2022 22:53:49 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4AE85B80DD4; Sun, 2 Oct 2022 22:53:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6381C433C1; Sun, 2 Oct 2022 22:53:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664751225; bh=omnBrp0Ds6pSUZeQ+zc7zo+0NlTtd4nF+pHskT6RTLs=; h=From:To:Cc:Subject:Date:From; b=Qihs5CdcfrRTBwwpnRvG2wehGGdIk7kXoL6WFNjoWXrfKgbrnp22Z9GLumW/GBV2o kWGk20W8TjqHjBmhO5efGDtaLJtA6dFPpM9rPBUX7f00Ypk6WTU5hwJtU6mCWmrNF+ MMrdxClXham75FlJnNj99ZyCUqkG11Ve4oLVyHJflhcoKz1u6VndaDKPpVMOT7VxOo xZM835iESs7VGVo/8vcYOpClPNwslIiAxmBRh6ddS1EceHb0tS1zLU0Y1OsRQP/8hd ev/0UG1wDAqOGG96+/Jrn0bEwz18X+fze3QbZdI5AZ9QcLo/iMdYJRLLiw6H81RInJ FhF2zpYgeSjwQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Swati Agarwal , Vinod Koul , Sasha Levin , michal.simek@xilinx.com, radhey.shyam.pandey@xilinx.com, lars@metafoo.de, adrianml@alumnos.upm.es, shravya.kumbham@xilinx.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.9 1/6] dmaengine: xilinx_dma: cleanup for fetching xlnx,num-fstores property Date: Sun, 2 Oct 2022 18:53:35 -0400 Message-Id: <20221002225342.240258-1-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221002_155347_862030_E5764FE9 X-CRM114-Status: GOOD ( 12.19 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Swati Agarwal [ Upstream commit 462bce790e6a7e68620a4ce260cc38f7ed0255d5 ] Free the allocated resources for missing xlnx,num-fstores property. Signed-off-by: Swati Agarwal Link: https://lore.kernel.org/r/20220817061125.4720-3-swati.agarwal@xilinx.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/xilinx/xilinx_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index d88c53ff7bb6..c0ee6859cdfc 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -2558,7 +2558,7 @@ static int xilinx_dma_probe(struct platform_device *pdev) if (err < 0) { dev_err(xdev->dev, "missing xlnx,num-fstores property\n"); - return err; + goto disable_clks; } err = of_property_read_u32(node, "xlnx,flush-fsync", -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel