Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2146890iof; Tue, 7 Jun 2022 21:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOat0kDKga8X85y5EPakQqYaUbx6hPr3lX+D4S/+KK6SYS/vESjbOFUj+sAfUiYkuMtnxS X-Received: by 2002:a17:903:32d2:b0:166:3747:8465 with SMTP id i18-20020a17090332d200b0016637478465mr31875342plr.143.1654661936309; Tue, 07 Jun 2022 21:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654661936; cv=none; d=google.com; s=arc-20160816; b=NuNGF4fkRvKUCdd4yJTIi0CzxAt8OVjWS7pU2Bc0C6E8FSgrEQgYXYZgcw3kgQsX/q /hGJr+qlqDM4Ti8ofEeHAGFtHJxi3OfPkuzLOjk6NKYxQ4mKOktDEik9Sn+9VJk3mCJS LwyJXZR2X0hYoehUF5ytLrIAKaFkZ+1kUA+2bLlxfs/+oQkfsUWvDV83PPWK9f3/4AKe Im+BEQWpYhpeYdD5qnWNvrX9jVLjRS/3DPq+bdqjxJDDcMdvvNEVn7AAGYU+yJMjjG5c XESOJrbr+FHpOK+DgOO3EgOCs3QopNHQ8z5eAFJhlyI5qDa1mPuTMjFDAOsmp2VwENdn sNtA== 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=aq7M5jn7HeChOwPWzrIbcDhxAac5A2QbA/mOGCtuquA=; b=oqH/tdux6ywCytG42CwBhz7VGvvCzsZlZ3AgpYcQzRvUIelPOp6N6shH791jLQrxMH HGV6d0CGjluRmTb0WmnaANwyP9yw6toSyR4ltONA9OCFRigN5A1Vs2W3TvrneIbGPQO7 EDJwxm7cl6uejYFfiSY9+ZHcuDy9H5RYTwQcGNqCKpehvJKMhJl85ZFh6Ym8JQ8vpcPu 8nfyMeN1NJsUMeEIgorWQt4N8WRkMRRbqYo8MhqiapTwNeSZPsxxCgrKSPvU8Ajf0eV3 U1jhAsDE5f4/MGy8NMjXTCV/7z9BBgCqU81VheMD09fSuVwcE5v4PdX7w8WzphTrxf4u hmaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="FdP9nZB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y12-20020a056a00190c00b0051c188efe22si10723216pfi.119.2022.06.07.21.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="FdP9nZB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F2FB374ED3; Tue, 7 Jun 2022 20:50:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349525AbiFGSD7 (ORCPT + 99 others); Tue, 7 Jun 2022 14:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348668AbiFGRpx (ORCPT ); Tue, 7 Jun 2022 13:45:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 686B7132A09; Tue, 7 Jun 2022 10:35:40 -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 498EE614BC; Tue, 7 Jun 2022 17:35:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 359D8C385A5; Tue, 7 Jun 2022 17:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623324; bh=jcHJD8ju3Rz+1Q/aZpacFYt41zZ5+xpft/qwCJ7JCgo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FdP9nZB/7z+kyGzLSJqaxPn+uy2HTrogAiRqWAoLZzgGREcMtFJUULpsxaq9WUoXA 4YdSwmYk5q4b5mDCdcfLCl4UHWFocYEu0mzsrlLFmtYSru32hG5wft4JcCW7v1X5kr sMnCmt8sdsbtyF6myR+w10+9Hl3BDH4wiI2WEE3A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Amelie Delaunay , Vinod Koul , Sasha Levin Subject: [PATCH 5.10 336/452] dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler() Date: Tue, 7 Jun 2022 19:03:13 +0200 Message-Id: <20220607164918.571540078@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Amelie Delaunay [ Upstream commit da3b8ddb464bd49b6248d00ca888ad751c9e44fd ] The parameter to pass back to the handler function when irq has been requested is a struct stm32_mdma_device pointer, not a struct stm32_mdma_chan pointer. Even if chan is reinit later in the function, remove this wrong initialization. Fixes: a4ffb13c8946 ("dmaengine: Add STM32 MDMA driver") Signed-off-by: Amelie Delaunay Link: https://lore.kernel.org/r/20220504155322.121431-3-amelie.delaunay@foss.st.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/stm32-mdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index 4ec6f5b69f56..9d54746c422c 100644 --- a/drivers/dma/stm32-mdma.c +++ b/drivers/dma/stm32-mdma.c @@ -1344,7 +1344,7 @@ static void stm32_mdma_xfer_end(struct stm32_mdma_chan *chan) static irqreturn_t stm32_mdma_irq_handler(int irq, void *devid) { struct stm32_mdma_device *dmadev = devid; - struct stm32_mdma_chan *chan = devid; + struct stm32_mdma_chan *chan; u32 reg, id, ccr, ien, status; /* Find out which channel generates the interrupt */ -- 2.35.1