]> git.baikalelectronics.ru Git - kernel.git/commit
mm: cma: WARN if freed memory is still in use
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 20 Dec 2012 23:05:18 +0000 (15:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 21 Dec 2012 01:40:19 +0000 (17:40 -0800)
commit60e39604461b97c7453dccdccfa95cb88e15f86e
treedb4b0ad1693c2b25da06655b6e7dd409c85ec120
parentd43cd07634c43d4ce7c267d2b1b8d4216c069e07
mm: cma: WARN if freed memory is still in use

Memory returned to free_contig_range() must have no other references.
Let kernel to complain loudly if page reference count is not equal to 1.

[rientjes@google.com: support sparsemem]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c