aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dma-debug.c')
-rw-r--r--lib/dma-debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dma-debug.c b/lib/dma-debug.c
index 9a350b414a50..f9e6d38b4b34 100644
--- a/lib/dma-debug.c
+++ b/lib/dma-debug.c
@@ -531,8 +531,11 @@ static void check_unmap(struct dma_debug_entry *ref)
531 struct hash_bucket *bucket; 531 struct hash_bucket *bucket;
532 unsigned long flags; 532 unsigned long flags;
533 533
534 if (dma_mapping_error(ref->dev, ref->dev_addr)) 534 if (dma_mapping_error(ref->dev, ref->dev_addr)) {
535 err_printk(ref->dev, NULL, "DMA-API: device driver tries "
536 "to free an invalid DMA memory address\n");
535 return; 537 return;
538 }
536 539
537 bucket = get_hash_bucket(ref, &flags); 540 bucket = get_hash_bucket(ref, &flags);
538 entry = hash_bucket_find(bucket, ref); 541 entry = hash_bucket_find(bucket, ref);