diff options
author | James Hogan <james@albanarts.com> | 2010-10-11 23:59:58 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-10-17 01:57:50 +0200 |
commit | 2ac21c6bc4249ee6d922f18dbec7266377592c32 (patch) | |
tree | 6ef49d2222cf3591bcd427c5721411bdf95e1f12 /Documentation/power/s2ram.txt | |
parent | f71648d73c1650b8b4aceb3856bebbde6daa3b86 (diff) | |
download | linux-2ac21c6bc4249ee6d922f18dbec7266377592c32.tar.gz linux-2ac21c6bc4249ee6d922f18dbec7266377592c32.tar.bz2 linux-2ac21c6bc4249ee6d922f18dbec7266377592c32.zip |
PM: Lock PM device list mutex in show_dev_hash()
Lock the PM device list mutex using device_pm_lock() and
device_pm_unlock() around the list iteration in show_dev_hash().
show_dev_hash() was reverse iterating dpm_list without first locking the
mutex that the functions in drivers/base/power/main.c lock. I assume
this was unintentional since there is no comment suggesting why the lock
might not be necessary.
Signed-off-by: James Hogan <james@albanarts.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'Documentation/power/s2ram.txt')
0 files changed, 0 insertions, 0 deletions