Re: [PATCH] percpu: Fix rollback in pcpu_embed_first_chunk()

From: Tejun Heo
Date: Wed May 09 2012 - 13:06:08 EST


Hello,

On Wed, May 09, 2012 at 02:39:48PM +0200, Michael Holzheu wrote:
> From: Michael Holzheu <holzheu@xxxxxxxxxxxxxxxxxx>
> Subject: percpu: Fix rollback in pcpu_embed_first_chunk()
>
> The "out_free_areas" rollback in pcpu_embed_first_chunk calls the
> free_fn() function for all elements in area[]. This is not correct
> because not all elements have been allocated.
>
> To fix this we call free_fn() only for allocated elements.

There's already a pending fix which fixes this and another more
serious problem, which I forgot to push. I'll push it out today.

http://article.gmane.org/gmane.linux.kernel/1288808

Thanks.

--
tejun
--
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/