lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 7 Dec 2017 14:03:48 +0100
From:   Ludovic BARRE <ludovic.barre@...com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        <linux-kernel@...r.kernel.org>
CC:     <stable@...r.kernel.org>,
        Mboumba Cedric Madianga <cedric.madianga@...il.com>,
        Vinod Koul <vinod.koul@...el.com>,
        Sasha Levin <alexander.levin@...izon.com>,
        Pierre Yves MORDRET <pierre-yves.mordret@...com>
Subject: Re: [PATCH 4.9 037/109] dmaengine: stm32-dma: Set correct args number
 for DMA request from DT

add Pierre-yves Mordret

acked-by: Ludovic BARRE <ludovic.barre@...com>

On 12/07/2017 01:56 PM, Greg Kroah-Hartman wrote:
> 4.9-stable review patch.  If anyone has any objections, please let me know.
> 
> ------------------
> 
> From: M'boumba Cedric Madianga <cedric.madianga@...il.com>
> 
> 
> [ Upstream commit 7e96304d99477de1f70db42035071e56439da817 ]
> 
> This patch sets the right number of arguments to be used for DMA clients
> which request channels from DT.
> 
> Signed-off-by: M'boumba Cedric Madianga <cedric.madianga@...il.com>
> Reviewed-by: Ludovic BARRE <ludovic.barre@...com>
> Signed-off-by: Vinod Koul <vinod.koul@...el.com>
> Signed-off-by: Sasha Levin <alexander.levin@...izon.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> ---
>   drivers/dma/stm32-dma.c |    7 ++-----
>   1 file changed, 2 insertions(+), 5 deletions(-)
> 
> --- a/drivers/dma/stm32-dma.c
> +++ b/drivers/dma/stm32-dma.c
> @@ -976,21 +976,18 @@ static struct dma_chan *stm32_dma_of_xla
>   	struct stm32_dma_chan *chan;
>   	struct dma_chan *c;
>   
> -	if (dma_spec->args_count < 3)
> +	if (dma_spec->args_count < 4)
>   		return NULL;
>   
>   	cfg.channel_id = dma_spec->args[0];
>   	cfg.request_line = dma_spec->args[1];
>   	cfg.stream_config = dma_spec->args[2];
> -	cfg.threshold = 0;
> +	cfg.threshold = dma_spec->args[3];
>   
>   	if ((cfg.channel_id >= STM32_DMA_MAX_CHANNELS) || (cfg.request_line >=
>   				STM32_DMA_MAX_REQUEST_ID))
>   		return NULL;
>   
> -	if (dma_spec->args_count > 3)
> -		cfg.threshold = dma_spec->args[3];
> -
>   	chan = &dmadev->chan[cfg.channel_id];
>   
>   	c = dma_get_slave_channel(&chan->vchan.chan);
> 
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ