Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1305612rwi; Thu, 13 Oct 2022 11:46:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4keC5FZxglEHocn7iy4JLNG5SvJeQSbDI2ll1JaIno5QKfPB/oPSnU4ZogvmIBijLJZil6 X-Received: by 2002:a63:6986:0:b0:43c:8417:8dac with SMTP id e128-20020a636986000000b0043c84178dacmr1113877pgc.286.1665686801954; Thu, 13 Oct 2022 11:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665686801; cv=none; d=google.com; s=arc-20160816; b=MVZTWf5Pe+UaThp2Hf33SVkLI2/aJNpDkEs9CIgYLXSspKMG/9SdXd3Z/BZYM4Xe2L f3lOrQKrhnfxdp+I6ISqRCt0Y5Zrx0QXN59YGRP5qplZeT2g1enyjJwnu40RSd+O1wKu 7K+fF6xd3ox14Uds1CpStjX8UDEYXiFF3IcsgbIfGIbkCRvT6Xt3BAA6zlnJf9pF2Eys VWOY7wN/p4oG44FajzQNWFFoxCIt8MGUBpeOnE20h9B/v1EBg7U5f966wL9Rru80zG4l dXoJO2Y73izzJsDnCzPfstWSZ9WavZ8G6J9qJgCANt8eyASJWeRekGD7pnMdBLwlE2m+ mFtQ== 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=BbAdxvZETurXN2C+Y1ZVtynsotCVUfuhP1TA7lkTqt8=; b=WjavF/BANpTKaMw7EBEBdi4uMvmGhaauqeSPJqVKHy+QNW7dDoy8fMjvzSAfyoyLzi v37fjlKXzSHBcTVnFMsfSb5PtmjtjmoX6fALbVRNIiuzilf4eVOwiM5Ou8uRnlG5H/J6 GA886z/l0ouP7BhcchX1mZT+jarRiqi12Il/4yj8SWZMFTR+eMRLhymkivHqc4dLLRdn KKuofDPbx7hzNj+ALfJdNKxOsJ3m85n/gRmSBZvcHNMjvmi9hE7w7N0PRosCLx217OSm Bqe3wqgL5iEVsTbMt8YmSr/flML5Jf4PvkO5K21JwMi9B9jm7icgT8Whzi0C8pGVlBAv Mxzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LKXRfTev; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a170902cec100b00176be2315dcsi617829plg.260.2022.10.13.11.46.28; Thu, 13 Oct 2022 11:46:41 -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=LKXRfTev; 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 S229754AbiJMRxp (ORCPT + 99 others); Thu, 13 Oct 2022 13:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiJMRxQ (ORCPT ); Thu, 13 Oct 2022 13:53:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C0B414FD2D; Thu, 13 Oct 2022 10:53:07 -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 ams.source.kernel.org (Postfix) with ESMTPS id 633DFB82022; Thu, 13 Oct 2022 17:53:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3C99C433D6; Thu, 13 Oct 2022 17:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665683585; bh=C51fN9Flo2zCAj2jCaWdZGHnkUxwUijWwOrzoNiedtg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LKXRfTevz1UKvjta1+q/nqUNjojqBvEJbUJs9P6vWB6wBkawajnd03X3ksk7DTpM0 5OLdiU+fr9S4RsXTMjApYIejjramzMn1v6yr43phbQPjrF4r4g4Am0L5cv94GQS4wn WtzxI9iMh/kQ9l5ZSbAT9QRIDiC3gPQxxPNjhon0= 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 5.4 05/38] dmaengine: xilinx_dma: cleanup for fetching xlnx,num-fstores property Date: Thu, 13 Oct 2022 19:52:06 +0200 Message-Id: <20221013175144.449468561@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013175144.245431424@linuxfoundation.org> References: <20221013175144.245431424@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 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 7729b8d22553..792776c86ee8 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -2683,7 +2683,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