From patchwork Mon Oct 24 11:29:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8556 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp417297wru; Mon, 24 Oct 2022 05:12:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DptJFFz0qhReg5GyOoK5Gg+y1v3mQr614Zem7xqqFopKCm72VjGMhsRrmF5rswPV3wZJ5 X-Received: by 2002:aa7:cb87:0:b0:43b:e650:6036 with SMTP id r7-20020aa7cb87000000b0043be6506036mr31007066edt.350.1666613575022; Mon, 24 Oct 2022 05:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666613575; cv=none; d=google.com; s=arc-20160816; b=thb4/6qvK84mhIvp246ezJaPIcqxIHHziQaPIStn1ts8E+9E48gbd6M+MQXi7LVxPi IVS5fyF8S28CYhdeL7olWUcmT1begmJbmMnZnEg3GE/P+sEoThTLZcMFcvZJYUCOx1ng mfeYr8+0biwg22DqTOLsxCwmTjGQ1TiL3PEj9Az8RX6IQLvbkb3ktIDPJocUpmQnPLF9 IassyXlpH9ESqEqJaa+HjOa/MeWUqTS21hghbCRDSl2lohLDJLepicjIJMd1/j0Dr6kG s+vIOKrgecwCnM+MPBml73G2lIZU+BAuZYnlsha5F+FojmvWEXAnRpWOipxkRXEqvQG+ Rhug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=11NUN6jEexHCNTPp9yBI0Q4zfXzDYibTGlhuYOAxiJk=; b=sjftF1mCB2y0/2ZLiRhLComI+QhUkiRjDOlafmX1IqKZB4g9LG/c/G8mGQy2ly1P2J 8kfPL5kchSDeuWTDml9SxS8Xf4CZc3AQJHVaMY6gkHZyL7uyK77kVqA2qKus8VbRMYIb uJH30p0PhWLq/dq0kZEFN7JiQaflAFh+VBOQdpQ7wxwroHLffjOOukXbrHLCFdEhMg7F ySzY6nCb1kwwORsJeMQ/nawp5swylyRTHGjAznOmaN4UgKM22eJpkfT80B8FG7JfQylb jw9wXFitGdBsuO+843NRinrjPp9hVo3eRIRe30hLiioWmqv98tlBX35UZtrF7jI4KsuH CwFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yp8KJlFv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb36-20020a1709076da400b0078dd22dd569si29398261ejc.121.2022.10.24.05.12.27; Mon, 24 Oct 2022 05:12:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yp8KJlFv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232218AbiJXMCN (ORCPT + 99 others); Mon, 24 Oct 2022 08:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232642AbiJXL71 (ORCPT ); Mon, 24 Oct 2022 07:59:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45DD07C752; Mon, 24 Oct 2022 04:48:41 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 049096127D; Mon, 24 Oct 2022 11:46:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 166A0C433D6; Mon, 24 Oct 2022 11:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611980; bh=JMY2yHIJQoF20ytPxniJHlxxD17968IV8wAg1htep04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yp8KJlFv6KQGcqVctKAmhFCp1eFKXQ64mlwpiQ3GYjHRw5MLCjy+jU4Fe7sRzlV7M JhG1F/OtOCXKlvBkmRfTMCB0hgg1JbFT7z7SBEcqKr3laXPO7VReZrbzOIv/QP1V7S Ptp00NHCPTiTV095R1BnKFixjcvpmBzlxkE2hjhk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Swati Agarwal , Vinod Koul , Sasha Levin Subject: [PATCH 4.14 024/210] dmaengine: xilinx_dma: cleanup for fetching xlnx,num-fstores property Date: Mon, 24 Oct 2022 13:29:01 +0200 Message-Id: <20221024112957.750056464@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747570995829561081?= X-GMAIL-MSGID: =?utf-8?q?1747570995829561081?= 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 3c2084766a31..9319349e69d2 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -2565,7 +2565,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",