On 16 July 2015 at 15:50, Tomas Winkler <[email protected]> wrote:
> Enclosing mmc_blk_put is missing in power_ro_lock_show
> sysfs handler
>
> Cc: [email protected] # 3.10+
> Signed-off-by: Tomas Winkler <[email protected]>

Thanks, applied for fixes!

I took the liberty to update the change-log and and add a fixes tag.
Fixes: add710eaa886 ("mmc: boot partition ro lock support")

Kind regards
Uffe

> ---
>  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 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;
>  }
>
> --
> 2.4.3
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to