summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-10-19 20:44:17 +0200
committerJens Axboe2018-10-25 19:17:39 +0200
commitd91dc172e34f6954a94957b012c3b08f4103d5f9 (patch)
tree39103ed87ac35c033c8df22357ac955cb91e84ff /drivers/cdrom
parentxen/blkfront: avoid NULL blkfront_info dereference on device removal (diff)
downloadkernel-qcow2-linux-d91dc172e34f6954a94957b012c3b08f4103d5f9.tar.gz
kernel-qcow2-linux-d91dc172e34f6954a94957b012c3b08f4103d5f9.tar.xz
kernel-qcow2-linux-d91dc172e34f6954a94957b012c3b08f4103d5f9.zip
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>
Diffstat (limited to 'drivers/cdrom')
0 files changed, 0 insertions, 0 deletions