Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178687
b: refs/heads/master
c: ce9277f
h: refs/heads/master
i:
  178685: e3453c7
  178683: d88fe3b
  178679: 92d0b96
  178671: 4ecee17
  178655: 610a9d3
  178623: 2fe96de
  178559: 8ef8a03
  178431: 4ed662c
  178175: 9822ac4
v: v3
  • Loading branch information
Joerg Roedel committed Dec 21, 2009
1 parent ec52d91 commit 59a534c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f764806438d5576ac58898332e5dcf30bb8a679
refs/heads/master: ce9277fb08e6e721482f7011ca28dcd0449b197c
5 changes: 5 additions & 0 deletions trunk/lib/dma-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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");
Expand Down

0 comments on commit 59a534c

Please sign in to comment.