[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bf4ab819-0116-e0cc-5186-441415609483@kernel.dk>
Date: Mon, 22 Oct 2018 03:16:53 -0600
From: Jens Axboe <axboe@...nel.dk>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>,
Bart Van Assche <bvanassche@....org>,
Christoph Hellwig <hch@....de>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] skd: fix unchecked return values
On 10/19/18 12:44 PM, Gustavo A. R. Silva wrote:
> Check return values of dma_set_mask_and_coherent().
>
> Otherwise, if dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
> fails, the following piece of code will be executed even when the call
> to dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); returns 0:
>
> dev_err(&pdev->dev, "DMA mask error %d\n", rc);
> goto err_out_regions;
Applied, thanks.
--
Jens Axboe
Powered by blists - more mailing lists