Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: TMIO: Ensure MFD cell is disabled on probe error path

Signed-off-by: Ian Molton <ian.molton@codethink.co.uk>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Ian Molton and committed by
Ulf Hansson
25db67e2 2dbf1dc3

+4 -2
+4 -2
drivers/mmc/host/tmio_mmc.c
··· 85 85 } 86 86 87 87 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 88 - if (!res) 89 - return -EINVAL; 88 + if (!res) { 89 + ret = -EINVAL; 90 + goto cell_disable; 91 + } 90 92 91 93 pdata->flags |= TMIO_MMC_HAVE_HIGH_REG; 92 94