Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212379
b: refs/heads/master
c: 2ac21c6
h: refs/heads/master
i:
  212377: db0928f
  212375: 3ce3eea
v: v3
  • Loading branch information
James Hogan authored and Rafael J. Wysocki committed Oct 16, 2010
1 parent 1b75043 commit 5b593b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f71648d73c1650b8b4aceb3856bebbde6daa3b86
refs/heads/master: 2ac21c6bc4249ee6d922f18dbec7266377592c32
5 changes: 4 additions & 1 deletion trunk/drivers/base/power/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ static int show_file_hash(unsigned int value)
static int show_dev_hash(unsigned int value)
{
int match = 0;
struct list_head *entry = dpm_list.prev;
struct list_head *entry;

device_pm_lock();
entry = dpm_list.prev;
while (entry != &dpm_list) {
struct device * dev = to_device(entry);
unsigned int hash = hash_string(DEVSEED, dev_name(dev), DEVHASH);
Expand All @@ -199,6 +201,7 @@ static int show_dev_hash(unsigned int value)
}
entry = entry->prev;
}
device_pm_unlock();
return match;
}

Expand Down

0 comments on commit 5b593b8

Please sign in to comment.