Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1178683rwi; Wed, 19 Oct 2022 07:34:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4xchhJLabShN+f/tcsn+74VJgR6mU//xwAYxsHNoGRLYd5GO3xrKiTShyTHet/91mMBqZj X-Received: by 2002:a17:907:a48:b0:77c:51b0:5aeb with SMTP id be8-20020a1709070a4800b0077c51b05aebmr7192615ejc.61.1666190076394; Wed, 19 Oct 2022 07:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666190076; cv=none; d=google.com; s=arc-20160816; b=RWkcFsEdNJTgrD8WnkxynOlIOhGpJXSZXc+PmolXluMaY/4dLgDYaF9c5+eMEhHl3t JJ0FR1IJ0zeoLlHGtqYNMOlT3iwkg5+YS5iCUzcFzA86+0FqvggwtvK513/om4LY3YT9 cpL0/snIM7KUEz39EQDc5OwIS2bWRi6QsG2czz/phZj03LDJmJf1H7REQugMt14uZa9z XLuoXo5Aq3dOLL1Tq5CdzaRbjhdB4okkHse7RVF9EQnKXb3z4xwOmjUJrT5/8Ma1FJOT PY3yUGfhdtqhjT/u3myzm+SbF/84qKoNHt0cW/pieAtFpV/SQuz7L5EV7CSCW/3KdjdE MgAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fDpOM5wbKHBduxY21ReNXPHVuDPxVl6pGAvLMKAJ0z4=; b=MQK7YFRrd9JXYI7bggFuKkNaF6MkveLP12rcPiWW00RDMG1jqjAJcT63VBU2PUo3mN itdJvPMshL2eozMTJqf5ye75ELKvhuTQIDCfDidF8LZoHuao3CAkPB1o2jV2vBcx4fN1 QCVsadPM01gJRkDg7oRjJ68lRHEWjqbiWIGhn6GCag1eXEzeOIHZeteXwwWZBUhiKgln 8Bg/HXXg6NixaiquEn0aXGGFynBRWMhAGPpHL3hR6NX9+kY/XfPFsGWfELXylcRJxUai Almwq+jUFKzRfTz8x6lam53poMNfPTzEITqmPINnn/srfWwFd9FSCjbRht7oEllxMvy6 M+gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QtQfot2R; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a05640235c900b00459060fce1bsi15643201edc.574.2022.10.19.07.34.10; Wed, 19 Oct 2022 07:34:36 -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=@kernel.org header.s=k20201202 header.b=QtQfot2R; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233532AbiJSNri (ORCPT + 99 others); Wed, 19 Oct 2022 09:47:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233020AbiJSNqQ (ORCPT ); Wed, 19 Oct 2022 09:46:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 129451C840A; Wed, 19 Oct 2022 06:31:55 -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 4131561871; Wed, 19 Oct 2022 13:31:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D43BC433C1; Wed, 19 Oct 2022 13:31:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666186291; bh=yrinlrU4GJFw5V8Pbm68WtjQ9PDNU+MEIvH4dMiemYg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QtQfot2R1zDOvLSyEHXFdv4m6AtscL8NOugTTNHxO+zgyBqLUIk6KxyuELqdVJ8/O x67CsoRPxX0cPDzoDEDAGTZ+B/8jAtZvOv25VRXmXoBdVsDmoH079a0nihfQlvLnsF +3ef9CUOjsloN1Dg/i001SdTCiTgm6+MvfMAvhNk+VPRGEXnaVG1zZTD4WF6PVD3MU 46Rw4f22OZqWkUIReKjLqVOGHVFPnWwk2dFjkLO/Y8HOSLv/ZWDg6Y00FY3aMgCAop lx70EsZgKD1zmUlwl+zjMvY/Nm7Nq+pGFGvvHO4+NyVmMG0nkKkpPSmXPifOZABD7r NgnZMvkrMIepA== Date: Wed, 19 Oct 2022 19:01:27 +0530 From: Vinod Koul To: Amelie Delaunay Cc: Maxime Coquelin , Alexandre Torgue , dmaengine@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: stm32-mdma: memset stm32_mdma_chan_config struct before using it Message-ID: References: <20221017131413.202567-1-amelie.delaunay@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221017131413.202567-1-amelie.delaunay@foss.st.com> X-Spam-Status: No, score=-7.4 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 On 17-10-22, 15:14, Amelie Delaunay wrote: > New bool m2m_hw has been added at the end of stm32_mdma_chan_config struct > to support the STM32 DMA MDMA chaining. > > m2m_hw is set true in stm32_mdma_slave_config() if peripheral_size is set, > but m2m_hw is never initialized false. > > To ensure this case, and any further new update of the structure, memset it > to 0 before using it. Applied, thanks -- ~Vinod