]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmc_spi: add checks for dma mapping error
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 5 Feb 2016 23:36:35 +0000 (02:36 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Feb 2016 14:22:04 +0000 (15:22 +0100)
commit6d9f9aacebd3e8c9e13811cd28da1f24f5baed89
treea3fc4c22c8cd254ff3d8f4dfdc0382fd663d3f15
parent6394de672ddf3f831308aa8c964fb435f15cff88
mmc: mmc_spi: add checks for dma mapping error

There is no checks for dma mapping errors in mmc_spi.
Tha patch fixes that and by the way it adds dma_unmap_single(ones_dma)
that was left on a failure path mmc_spi_probe().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmc_spi.c