From patchwork Mon Oct 24 11:28:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8726 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp423591wru; Mon, 24 Oct 2022 05:25:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4no67eEmko8UvVUJAiZZLUwqzy0q6lRW10HAcT6TWOWTwLy1i5Z4jnbA+BFCxyxQ+/lvNy X-Received: by 2002:a17:90b:3505:b0:20d:ba2e:994b with SMTP id ls5-20020a17090b350500b0020dba2e994bmr62084095pjb.46.1666614311827; Mon, 24 Oct 2022 05:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666614311; cv=none; d=google.com; s=arc-20160816; b=cepjSSCC+LAM/k2EMIdowfhwE+x8Rh1GDLlqKJ+KSWtm29r/bThbI8B/aojfp4Ckdm H6EQs/GZQ1BI+osqgqR5pbXuzO+V3G7VN/py23M8l7O9Le4f3dA46NwBo4VgNQt1NGYM BD9QkZ9fzndHXJ09rtOgKj2IeGffTN6sOjd/z6Pb0yyNBX41s33ZVPAVEEIZPxf8P94h g3y+oC9k/mlPbe8HrXQnFnvcq987zJEocs1s1yf9qgj+Reu1THXwtPIf/jLV0Yif6aey zfOhILog3v6LTVPohz4sdji/IWajaYo3UHkXjOS2ogBhjrw2FqtrzIbgvWBqLoRxk1er OkCQ== 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=a8G+K6J6Pe4e9UxGxrjb80rjiggFOam/UjK+65teEhU=; b=mNEpqAfN8BXs48GXDUYqc5vjnUQvw0sQbXlYijBRj3eptY6PpDzX0lBvIzNzvTOwTU xjPKY2NnzcUyqcV8ZKQLhNSD5+zefNg5HK8FMkyg2Oi5oKexN9dWk3bsLwLLA5bJdhJG DVhoaNcIKw0e2DKiaXdHG8NIkGAcVWDzOvtYmS2nq0BUCkEdgZhRh5SAvryxpGaoeKQw QOa3ksMGJjY4UXp4FtgvsbYehNYp1/VBuYVYbi/oAgkYTZzFTO8HNv0eLE9MzsqhCpoV RdkyiCAYgvjJG48GT3K+3zP+4ouAmmyDMekxqL4iXhN7ZUktaxikfS2XXriu2ujldrCf IrbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZF3IV2JH; 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 u65-20020a637944000000b0045d1aa2a586si34888168pgc.197.2022.10.24.05.24.59; Mon, 24 Oct 2022 05:25:11 -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=ZF3IV2JH; 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 S233687AbiJXMYF (ORCPT + 99 others); Mon, 24 Oct 2022 08:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233348AbiJXMWz (ORCPT ); Mon, 24 Oct 2022 08:22:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25E0D10FDE; Mon, 24 Oct 2022 04:59:27 -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 E5B8AB811DC; Mon, 24 Oct 2022 11:55:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45DC7C43470; Mon, 24 Oct 2022 11:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612523; bh=u5TzAJ+V988KQo6k184h+K2UMiphbxZiON4R8VGPRfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZF3IV2JH+nb6ystb4CD34pp2PB80VPUiM5iTobiYtdtRW11tUN+sQLx88hqNMxm7I vo1X5JQnwE1x337/4aO2qo2narZ6uO5OiL8wuKde3gz7hh5SBnd88E1w90Tmu5CpIk EYJLkJhfKx24cs2Kek3a7D7w9WrkpbWdjTLZ5Hgo= 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.19 006/229] dmaengine: xilinx_dma: cleanup for fetching xlnx,num-fstores property Date: Mon, 24 Oct 2022 13:28:45 +0200 Message-Id: <20221024112959.321028491@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@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?1747571768704346578?= X-GMAIL-MSGID: =?utf-8?q?1747571768704346578?= 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 3f38df6b51f2..f72803587b8f 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -2654,7 +2654,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",