]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Aug 2015 19:21:55 +0000 (12:21 -0700)
commit7a64ba1a070e33af42f21811886497ee33030670
tree739e3400fefc6e87ee67e4ae0a9f3c6428722485
parent2ebb372240adabb59cc2671e64a85c2cc6f803b8
mmc: sdhci check parameters before call dma_free_coherent

commit 7ac020366b0a436d726408841160b5dc32c19214 upstream.

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

Fixes: d1e49f77d7c7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci.c