]> git.baikalelectronics.ru Git - kernel.git/commit
dmapool: make DMAPOOL_DEBUG detect corruption of free marker
authorMatthieu CASTET <matthieu.castet@parrot.com>
Wed, 12 Dec 2012 00:01:31 +0000 (16:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Dec 2012 01:22:24 +0000 (17:22 -0800)
commitcafdcfd5d0fb8f67da185e5e11a730179a5c2cc1
tree69082ec836d553c98b99e6a0f3aebe2649b4fad2
parentda6ac961747c426053bfdf2c6e37359b9fbc510f
dmapool: make DMAPOOL_DEBUG detect corruption of free marker

This can help to catch the case where hardware is writing after dma free.

[akpm@linux-foundation.org: tidy code, fix comment, use sizeof(page->offset), use pr_err()]
Signed-off-by: Matthieu Castet <matthieu.castet@parrot.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/dmapool.c