]> 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, 29 Nov 2012 03:17:32 +0000 (14:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:13 +0000 (16:23 +1100)
commitb4f615e971b155f5841b2697ff28ea7f204828b7
tree59ea5d354233c9169b5c5051580a126715da1d80
parent749edd7254069f83d00f9ea1de85791b8be14a4f
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