diff --git a/[refs] b/[refs] index b1db0171f888..a6ab7cedb0fc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0f764806438d5576ac58898332e5dcf30bb8a679 +refs/heads/master: ce9277fb08e6e721482f7011ca28dcd0449b197c diff --git a/trunk/lib/dma-debug.c b/trunk/lib/dma-debug.c index d9b08e0f7f55..739974460c32 100644 --- a/trunk/lib/dma-debug.c +++ b/trunk/lib/dma-debug.c @@ -676,6 +676,8 @@ static int dma_debug_device_change(struct notifier_block *nb, struct device *dev = data; int count; + if (global_disable) + return; switch (action) { case BUS_NOTIFY_UNBOUND_DRIVER: @@ -697,6 +699,9 @@ void dma_debug_add_bus(struct bus_type *bus) { struct notifier_block *nb; + if (global_disable) + return; + nb = kzalloc(sizeof(struct notifier_block), GFP_KERNEL); if (nb == NULL) { pr_err("dma_debug_add_bus: out of memory\n");