]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: renesas_sdhi: fix kernel panic in _internal_dmac.c
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 20 Oct 2017 03:12:42 +0000 (12:12 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 20 Oct 2017 09:24:58 +0000 (11:24 +0200)
commit7fd44158a95be4d92b8f825d8b26ae9e9e3a1a7e
tree128c3f5257c96ff7b8c42d512269d1526002a17a
parent3e3c9f791af093bad6039e96860bd00a11da2792
mmc: renesas_sdhi: fix kernel panic in _internal_dmac.c

Since this driver checks if the return value of dma_map_sg() is minus
or not and keeps to enable the DMAC, it may cause kernel panic when
the dma_map_sg() returns 0. So, this patch fixes the issue.

Reported-by: Dirk Behme <dirk.behme@de.bosch.com>
Fixes: 99abf4e8ffb2 ("mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c