[3.13.y-ckt stable] Patch "mmc: block: Add missing mmc_blk_put() in power_ro_lock_show()" has been added to staging queue

Kamal Mostafa kamal at canonical.com
Wed Sep 2 00:55:33 UTC 2015


This is a note to let you know that I have just added a patch titled

    mmc: block: Add missing mmc_blk_put() in power_ro_lock_show()

to the linux-3.13.y-queue branch of the 3.13.y-ckt extended stable tree 
which can be found at:

    http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.13.y-queue

This patch is scheduled to be released in version 3.13.11-ckt26.

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.13.y-ckt tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Kamal

------

>From 3acc0fb92776e41053ed768cad7fa534ab051a9c Mon Sep 17 00:00:00 2001
From: Tomas Winkler <tomas.winkler at intel.com>
Date: Thu, 16 Jul 2015 15:50:45 +0200
Subject: 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 at intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
 drivers/mmc/card/block.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index a651096..a6bf69b 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -205,6 +205,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;
 }

--
1.9.1





More information about the kernel-team mailing list