]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: cma: WARN if freed memory is still in use
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 Nov 2012 02:37:59 +0000 (13:37 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:25:53 +0000 (17:25 +1100)
commit61ddd5a78839edfa2c18bf6a07c3ccd18d2f1073
tree15650ec91452038da5e427aa5cd613f0f97db90e
parent8c8a908551574a78595baf51b7bafa656d84d9f1
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.

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: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c