]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit5de55b265a13bc263c823bbe05d87d2c5e785f6f
tree69082ec836d553c98b99e6a0f3aebe2649b4fad2
parent9ff4868e3051d9128a24dd330bed32011a11421d
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