From: Tomas Winkler Date: Thu, 16 Jul 2015 13:50:45 +0000 (+0200) Subject: mmc: block: Add missing mmc_blk_put() in power_ro_lock_show() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9098f84cced870f54d8c410dd2444cfa61467fa0;p=openwrt%2Fstaging%2Fblogic.git mmc: block: Add missing mmc_blk_put() in power_ro_lock_show() 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 Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index c9c3d20b784b..a1b820fcb2a6 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; }