summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds2015-03-20 00:18:30 +0100
committerLinus Torvalds2015-03-20 00:18:30 +0100
commit32dafb94a619ef7e62a23e3e3646d0ba0107de32 (patch)
treebad98051f86bb91ff54b1eddf32ada0dbbdde7e1
parentMerge tag 'pinctrl-v4.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/l... (diff)
parentmmc: pwrseq_simple: fix error path in mmc_pwrseq_simple_alloc (diff)
downloadkernel-qcow2-linux-32dafb94a619ef7e62a23e3e3646d0ba0107de32.tar.gz
kernel-qcow2-linux-32dafb94a619ef7e62a23e3e3646d0ba0107de32.tar.xz
kernel-qcow2-linux-32dafb94a619ef7e62a23e3e3646d0ba0107de32.zip
Merge tag 'mmc-v4.0-rc4' of git://git.linaro.org/people/ulf.hansson/mmc
Pull MMC fix from Ulf Hansson: "MMC core: fix error path in mmc_pwrseq_simple_alloc()" * tag 'mmc-v4.0-rc4' of git://git.linaro.org/people/ulf.hansson/mmc: mmc: pwrseq_simple: fix error path in mmc_pwrseq_simple_alloc
-rw-r--r--drivers/mmc/core/pwrseq_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/pwrseq_simple.c b/drivers/mmc/core/pwrseq_simple.c
index e9f1d8d84613..c53f14a7ce54 100644
--- a/drivers/mmc/core/pwrseq_simple.c
+++ b/drivers/mmc/core/pwrseq_simple.c
@@ -124,7 +124,7 @@ int mmc_pwrseq_simple_alloc(struct mmc_host *host, struct device *dev)
PTR_ERR(pwrseq->reset_gpios[i]) != -ENOSYS) {
ret = PTR_ERR(pwrseq->reset_gpios[i]);
- while (--i)
+ while (i--)
gpiod_put(pwrseq->reset_gpios[i]);
goto clk_put;