]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci check parameters before call dma_free_coherent
authorPeng Fan <van.freenix@gmail.com>
Mon, 22 Jun 2015 03:41:23 +0000 (11:41 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jul 2015 08:18:27 +0000 (10:18 +0200)
commitb96cb8a833b51b12b626662d60b80a88fb7a8a3f
tree5809318d426171c41526b7f9b6edbce26f24ca85
parentf1d9a22b6fff1cdec7873988847a1dedf91c4438
mmc: sdhci check parameters before call dma_free_coherent

We should not call dma_free_coherent if host->adma_table is NULL,
otherwise may trigger panic.

Fixes: 88a2557558a9 ("mmc: sdhci: convert ADMA descriptors to a...")
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c