From patchwork Mon Oct 24 11:29:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8469 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp403087wru; Mon, 24 Oct 2022 04:51:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VX2Fsxbuois5ZuP2QHSR5gIGzH9MSmNEyIpN8YXuj4vmnnhu4QbDsUccbCQbFF82x4P60 X-Received: by 2002:a17:902:e885:b0:183:dcb7:c4f8 with SMTP id w5-20020a170902e88500b00183dcb7c4f8mr33331659plg.160.1666612274331; Mon, 24 Oct 2022 04:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612274; cv=none; d=google.com; s=arc-20160816; b=vtyRL+dlYm0uyVpWjsainHwn8Zer74mcc3fiS/GPU2Fxql8TWwmT75PvpZioidjpbq xqOeP1TEWqNaJ7hbgn9JhcUCwFJvDkwPVH9eNLq42w5aN5Fhul8GeLS4d4LhCEKuIZjD y5IWUks+UZZAYg1W2QE6WB2eVoylO8qW1LgkQ4E5YQTjEMUydI9dZMi5BByxbmaqkIg6 8dLXFqDRirXxh3jFwOJxqWA2ORnQ+gHVBoM1fiUdMX3kUB26DmMgvkYjH58oMXHSFrii eIarw4jh8o+aIbrKaleSwEwHrz7F7BsvjBnwHlHSbnEEeH+esjj4GzdVRM9mtvhisvkL kS6Q== 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=jF1hi7bUQaTHSU7GvEJgGZubVtWbgp5xeowg4jY034o=; b=rKc0uWBffQCvcA9zbyCxtOskBsRcSNOf5UX7XSiMjBQTTH5+XcBhO1QfC7MNofwVjH ca2j2LM+JEk2/FkZiSYSR2Qxm/b2DFLZwr1ppStozjHTOP0kpzbnryqDMT7aYgVks6iO GBl9auNlk8DUkgGzo1qCi733lhvCOPkrDTVmLrJSSUAR+GeB22/t8XvXxtF5osxc4L7w pTJqDiyqPKnQc5wDY2RDvonuqgrmy5id31NCePyNGAc7Lkh9CkAumuWN0BJIB1zIWzRa 3Anu82Z7DkrgCT6Ic9zxScfZRRN1LiGQ1BXqN4uzNPIKLzRUktZtJfzaRpDFoYExrx3k imOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NR8wn5oR; 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 e12-20020a63ee0c000000b0042b16d0cbf9si35318944pgi.638.2022.10.24.04.51.01; Mon, 24 Oct 2022 04:51:14 -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=NR8wn5oR; 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 S231872AbiJXLup (ORCPT + 99 others); Mon, 24 Oct 2022 07:50:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231854AbiJXLtG (ORCPT ); Mon, 24 Oct 2022 07:49:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16DC476757; Mon, 24 Oct 2022 04:43:33 -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 9E88F6129B; Mon, 24 Oct 2022 11:40:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF63DC433D6; Mon, 24 Oct 2022 11:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611626; bh=omnBrp0Ds6pSUZeQ+zc7zo+0NlTtd4nF+pHskT6RTLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NR8wn5oRMd7oyLP7yrg3oPuL74iF4+tLxIPBD2GlO+GpyxxdzdlwxKtK/O+mfiBRw pqqCILwvDq+hHm6cIQoVYRUeNOd6zoIDp1m31c7/hEPQ7hW03+jUelIxFqAj+O+3E5 ZEj089rUHG7u8A4sAWz3e4iSVtJojnuys2yaS7+g= 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.9 019/159] dmaengine: xilinx_dma: cleanup for fetching xlnx,num-fstores property Date: Mon, 24 Oct 2022 13:29:33 +0200 Message-Id: <20221024112950.073350920@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@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?1747569632536663381?= X-GMAIL-MSGID: =?utf-8?q?1747569632536663381?= 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",