[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168909381758.208562.7750426998388871956.b4-ty@kernel.org>
Date: Tue, 11 Jul 2023 22:13:37 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v2] dmaengine: mcf-edma: Fix a potential un-allocated
memory access
On Sat, 27 May 2023 09:36:31 +0200, Christophe JAILLET wrote:
> When 'mcf_edma' is allocated, some space is allocated for a
> flexible array at the end of the struct. 'chans' item are allocated, that is
> to say 'pdata->dma_channels'.
>
> Then, this number of item is stored in 'mcf_edma->n_chans'.
>
> A few lines later, if 'mcf_edma->n_chans' is 0, then a default value of 64
> is set.
>
> [...]
Applied, thanks!
[1/1] dmaengine: mcf-edma: Fix a potential un-allocated memory access
commit: ad5808c58ddceeab43dc68cc10d99f56d143facd
Best regards,
--
~Vinod
Powered by blists - more mailing lists