summaryrefslogtreecommitdiffstats
path: root/kernel/lib/dma-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/lib/dma-debug.c')
-rw-r--r--kernel/lib/dma-debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/lib/dma-debug.c b/kernel/lib/dma-debug.c
index 4a1515f4b..51a76af25 100644
--- a/kernel/lib/dma-debug.c
+++ b/kernel/lib/dma-debug.c
@@ -657,9 +657,9 @@ static struct dma_debug_entry *dma_entry_alloc(void)
spin_lock_irqsave(&free_entries_lock, flags);
if (list_empty(&free_entries)) {
- pr_err("DMA-API: debugging out of memory - disabling\n");
global_disable = true;
spin_unlock_irqrestore(&free_entries_lock, flags);
+ pr_err("DMA-API: debugging out of memory - disabling\n");
return NULL;
}