Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2195132iof; Tue, 7 Jun 2022 22:51:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAI+2dexqDqgQ6wgwgt5adP3RCz1qF1obhyu65boZAp+XXa1DyalWxPo6x6xZcQbLh9ssv X-Received: by 2002:aa7:8d0f:0:b0:518:d867:bae8 with SMTP id j15-20020aa78d0f000000b00518d867bae8mr32155508pfe.13.1654667460447; Tue, 07 Jun 2022 22:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667460; cv=none; d=google.com; s=arc-20160816; b=fth1Ap28tBmxVPk2vMX1TmhNQvILr0x6AzwitMr2hWfS54Aia2Za5wSyMNQlwSHhy0 auWWkG5FZhC/eFdbtCG8cBzAAY74IB+qWnqrAAklfNSylghNeXokHcNBA1mw9wVIgXqO FQEd2np3V/a1rEHtblHs5SdqgJDf67a5zuWv3RFXuTzrLrauuoWCDhmiFzsTw2wrkkUe P7V0aeo+CEtlSvOE2afibezRwvbF2bxmQPIftHqWmI0jkzK7axnK9KW44gROFfJj5uPm FBZ720Cs/1qX6bqpPKGAoih/uY+u1a0mBhTTd14EevP4H0Q/ASvKEzi7gqTZQQ7PIzfr 7IjA== 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=BupoDq3T7UgAh8lS7x9h/N9IcKdA6yph1xtenJFyM9A=; b=gA8dIN/OCOSe+qlthL3oXA5NSpGHRs9zRpqeG8W2wIkPMeSwEw/n6a4SrVV48qpVjx grOR0gNY5HEx1FcgxpwWkqdi3EeFrMKRCRLERVII0ZwlCtsSxHWyTbXHoeBf5Lcmfxbj 0/Y7qNr8TFgQAuCGJrmwNviyJcmi/FZSmECXTxnNFj6PZD2K85HYwLma1hs0fvE/lRvW FxxC8k3NrQMkXp2naJXOYCLCmh0X+yd1sOEYef+Uv3f8qysuy3pkIYGo56TTXOF44Ugc pbNfc62QcnaK30b2+sD1w6nmbzF3zBW6umhUskF8iO5VsoveTRbdjjJUyhkUN16F7krs DjEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uqdgGuu2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id s10-20020a056a00178a00b0051c4b1e61dbsi3252779pfg.280.2022.06.07.22.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:51:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uqdgGuu2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 59B7D48A286; Tue, 7 Jun 2022 22:18:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231733AbiFHArf (ORCPT + 99 others); Tue, 7 Jun 2022 20:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383692AbiFGWGJ (ORCPT ); Tue, 7 Jun 2022 18:06:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0C3525225A; Tue, 7 Jun 2022 12:17:03 -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 2731761931; Tue, 7 Jun 2022 19:17:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC60DC385A2; Tue, 7 Jun 2022 19:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629422; bh=ohP/jfSBL/ExsqgGs2Zkp69wvFadcqfktgMHUYKIiCM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uqdgGuu2TlQY9720tfQC+SnkqohPRixSxft0amQ2aLaA23zaeqY6WwlCfDIRcm3ul qUWRRS2MZ/dYfw6OEUQAB1U8i9T/VI/MO2u3WOU8thGBRtxd4ic8cwdaijeAeAD0T9 JVGnynBvAEmxKdct+IGCOPpMjWlCIC6xY/TZmCWM= 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.18 686/879] dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler() Date: Tue, 7 Jun 2022 19:03:24 +0200 Message-Id: <20220607165022.757319089@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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 1e6bc22ddae9..f8c8b9d76aad 100644 --- a/drivers/dma/stm32-mdma.c +++ b/drivers/dma/stm32-mdma.c @@ -1316,7 +1316,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