Re: [PATCH v9 2/2] Staging: zram: Fix decrement of variable bycalling bdput()

From: Rashika Kheria
Date: Fri Nov 01 2013 - 10:13:50 EST


On Fri, Nov 1, 2013 at 2:24 PM, Jerome Marchand <jmarchan@xxxxxxxxxx> wrote:
>
> On 10/31/2013 12:58 PM, Rashika Kheria wrote:
> > As suggested by Jerome Marchand "The code in reset_store get the block device
> The credit should actually go to Minchan. He found the bug. I merely
> explained it.
>
> > (bdget_disk()) but it does not put it (bdput()) when it's done using it.
> > The usage count is therefore incremented but never decremented."
> >
> > This patch also puts bdput() for all error cases.
> >
> > Cc: stable@xxxxxxxxxxxxxxx
> > Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
>
> This version finally looks good. Thanks for your effort.
>
> Acked-by: Jerome Marchand <jmarchan@xxxxxxxxxx>
>
>

Hi,

Thanks Minchan and Jerome for all you support and patience.
Your guidance helped me learn more about zram and kernel coding style
in general. :)

Thanks,
--
Rashika Kheria
B.Tech CSE
IIIT Hyderabad
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/