Message ID | 1467838874-18755-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/lib/dma-debug.c b/lib/dma-debug.c index 57f452f..a0a6210 100644 --- a/lib/dma-debug.c +++ b/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; }