From: Rik van Riel on
On 04/20/2010 03:24 PM, Oleg Nesterov wrote:
> If find_mergeable_anon_vma() succeeds but another thread installs
> ->anon_vma before we take ptl, then allocated == NULL but avc should
> be freed. Change the code to check avc != NULL to detect this case.

Good catch!

> Signed-off-by: Oleg Nesterov<oleg(a)redhat.com>

Reviewed-by: Rik van Riel <riel(a)redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/