linux/drivers/base/power
James Hogan 2ac21c6bc4 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>
2010-10-17 01:57:50 +02:00
..
generic_ops.c
main.c PM: Fix potential issue with failing asynchronous suspend 2010-10-17 01:57:43 +02:00
Makefile
power.h PM / Runtime: Add no_callbacks flag 2010-10-17 01:57:47 +02:00
runtime.c PM / Runtime: Remove idle notification after failing suspend 2010-10-17 01:57:49 +02:00
sysfs.c PM / Runtime: Implement autosuspend support 2010-10-17 01:57:48 +02:00
trace.c PM: Lock PM device list mutex in show_dev_hash() 2010-10-17 01:57:50 +02:00
wakeup.c PM / Wakeup: Introduce wakeup source objects and event statistics (v3) 2010-10-17 01:57:43 +02:00