summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2015-07-16 15:50:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-03 09:29:45 -0700
commit1ac6c9e2747ae5b3cb10e3a940281b9be242cff0 (patch)
tree284204b518dec94a9d525224d69e67f4db96599d
parent2554f6d1934d42459f56071dacef7fcbd886d0ad (diff)
downloadlinux-stable-1ac6c9e2747ae5b3cb10e3a940281b9be242cff0.tar.gz
linux-stable-1ac6c9e2747ae5b3cb10e3a940281b9be242cff0.tar.bz2
linux-stable-1ac6c9e2747ae5b3cb10e3a940281b9be242cff0.zip
mmc: block: Add missing mmc_blk_put() in power_ro_lock_show()
commit 9098f84cced870f54d8c410dd2444cfa61467fa0 upstream. Enclosing mmc_blk_put() is missing in power_ro_lock_show() sysfs handler, let's add it. Fixes: add710eaa886 ("mmc: boot partition ro lock support") Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/mmc/card/block.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 56998eca1a8d..32fc557bca43 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -202,6 +202,8 @@ static ssize_t power_ro_lock_show(struct device *dev,
ret = snprintf(buf, PAGE_SIZE, "%d\n", locked);
+ mmc_blk_put(md);
+
return ret;
}