Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2ac21c6b authored by James Hogan's avatar James Hogan Committed by Rafael J. Wysocki
Browse files

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: default avatarJames Hogan <james@albanarts.com>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent f71648d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment