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)
commitb00663124c76f69e71d118d778842471e85c6f11
treea3fc4c22c8cd254ff3d8f4dfdc0382fd663d3f15
parent2df9d58fcc0f20d812f390e0b97df69d70d3152f
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