diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2015-07-16 15:50:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 09:29:07 -0700 |
commit | 4f27844f84d6dd76fe84d25c5bece18295d870f6 (patch) | |
tree | 0e1b796a67019ef7f5ab49d3d740a37d693b3303 | |
parent | be22af9f28db4b669969b0ea231d5ecb4dc7b01d (diff) |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 60f7141a6b02..e4a52ce9242f 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -208,6 +208,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; } |