Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966446AbcCPIdz (ORCPT ); Wed, 16 Mar 2016 04:33:55 -0400 Received: from mail.kernel.org ([198.145.29.136]:59751 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965227AbcCPIJj (ORCPT ); Wed, 16 Mar 2016 04:09:39 -0400 From: lizf@kernel.org To: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Tomas Winkler , Ulf Hansson , Zefan Li Subject: [PATCH 3.4 045/107] mmc: block: Add missing mmc_blk_put() in power_ro_lock_show() Date: Wed, 16 Mar 2016 16:05:39 +0800 Message-Id: <1458115601-5762-45-git-send-email-lizf@kernel.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458115541-5712-1-git-send-email-lizf@kernel.org> References: <1458115541-5712-1-git-send-email-lizf@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 912 Lines: 35 From: Tomas Winkler 3.4.111-rc1 review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Ulf Hansson Signed-off-by: Zefan Li --- 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 47a789e..b4277ac 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -182,6 +182,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