dma-debug: add checks for kernel text and rodata
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 16 Mar 2009 15:51:55 +0000 (16:51 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Mar 2009 11:56:48 +0000 (12:56 +0100)
commit2e34bde18576a02c897ae6b699ea26301d92be1b
tree301278f1af66dd5be296814e19af2f6190e27634
parent6c132d1bcdc716e898b4092bb1abc696505c37e7
dma-debug: add checks for kernel text and rodata

Impact: get notified if a device dma maps illegal areas

This patch adds a check to print a warning message when a device driver
tries to map a memory area from the kernel text segment or rodata.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
lib/dma-debug.c