Re: [PATCH] mmc: add missing mmc_blk_put in power_ro_lock_show

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16 July 2015 at 15:50, Tomas Winkler <tomas.winkler@xxxxxxxxx> wrote:
> Enclosing mmc_blk_put is missing in power_ro_lock_show
> sysfs handler
>
> Cc: stable@xxxxxxxxxxxxxxx # 3.10+
> Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>

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 stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]