dma-debug: add a check dma memory leaks
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 16 Mar 2009 16:32:14 +0000 (17:32 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Mar 2009 11:56:49 +0000 (12:56 +0100)
commit41531c8f5f05aba5ec645d9770557eedbf75b422
tree7635e68efbee5ea7b5208e5d4b332f6ef2113dd3
parent2e34bde18576a02c897ae6b699ea26301d92be1b
dma-debug: add a check dma memory leaks

Impact: allow architectures to monitor busses for dma mem leakage

This patch adds checking code to detect if a device has pending DMA
operations when it is about to be unbound from its device driver.

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