Re: [PATCH] mm: cma: WARN if freed memory is still in use

2012-11-12 Thread Michal Nazarewicz
On Mon, Nov 12 2012, Marek Szyprowski wrote: > Memory return to free_contig_range() must have no other references. Let > kernel to complain loudly if page reference count is not equal to 1. > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 022e4ed..290c2eb 100644 > --- a/mm/page_alloc.c > +

[PATCH] mm: cma: WARN if freed memory is still in use

2012-11-12 Thread Marek Szyprowski
Memory return to free_contig_range() must have no other references. Let kernel to complain loudly if page reference count is not equal to 1. Signed-off-by: Marek Szyprowski Reviewed-by: Kyungmin Park CC: Michal Nazarewicz --- mm/page_alloc.c |9 +++-- 1 file changed, 7 insertions(+), 2