Gustavo A. R. Silva d91dc172e3 skd: fix unchecked return values
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;

Addresses-Coverity-ID: 1474553 ("Unchecked return value")
Fixes: 138126214868 ("skd: switch to the generic DMA API")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-10-25 11:17:39 -06:00
..
2018-10-14 12:47:52 -06:00
2018-10-15 20:08:15 -06:00
2018-10-25 06:50:48 -07:00
2018-10-16 09:49:52 -06:00
2018-10-16 09:50:09 -06:00
2018-10-16 09:50:14 -06:00
2018-10-17 09:42:30 -06:00
2018-10-17 09:42:30 -06:00
2018-10-02 08:36:58 -06:00
2018-10-15 20:07:56 -06:00
2017-02-20 12:16:15 +01:00
2018-09-06 16:18:04 +02:00
2018-10-25 11:17:39 -06:00
2017-08-18 08:45:29 -06:00
2018-10-22 17:46:08 +01:00
2018-10-16 09:49:36 -06:00
2018-10-16 09:49:18 -06:00
2018-10-18 15:14:45 -06:00
2018-10-18 15:14:47 -06:00
2018-10-15 20:08:24 -06:00
2018-10-16 09:50:43 -06:00