X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=lib%2Fdma-debug.c;h=51a76af25c66355f3833965eb3c3edd8056d25e5;hb=ccc12561926c0bef9a40865db93b926a0927e93f;hp=4a1515f4b452bd283d18ade33fe24d50ced6eff7;hpb=1b3bf847977c2e5974012ddd4b25fef50967d785;p=deliverable%2Flinux.git diff --git a/lib/dma-debug.c b/lib/dma-debug.c index 4a1515f4b452..51a76af25c66 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; }