diff options
| author | James Hogan <[email protected]> | 2010-10-11 21:59:58 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2010-10-16 23:57:50 +0000 |
| commit | 2ac21c6bc4249ee6d922f18dbec7266377592c32 (patch) | |
| tree | 6ef49d2222cf3591bcd427c5721411bdf95e1f12 /lib/dynamic_debug.c | |
| parent | PM / Runtime: Remove idle notification after failing suspend (diff) | |
| download | kernel-2ac21c6bc4249ee6d922f18dbec7266377592c32.tar.gz kernel-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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
