From: James Hogan Date: Mon, 11 Oct 2010 21:59:58 +0000 (+0200) Subject: PM: Lock PM device list mutex in show_dev_hash() X-Git-Tag: v2.6.37-rc1~185^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ac21c6bc4249ee6d922f18dbec7266377592c32;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed