PM / devfreq: Add proper locking around list_del()
authorAxel Lin <axel.lin@ingics.com>
Thu, 29 Sep 2016 02:13:28 +0000 (10:13 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 10 Oct 2016 22:00:20 +0000 (00:00 +0200)
commit0f376c9cd86c23f37312d37748b233660ef9d9af
treeefa46f8cb94cf7e906ebfed2401d6cc34e0e1be9
parent3b91f4b361daad1f3e1c60ca5a7861e8b36f9728
PM / devfreq: Add proper locking around list_del()

Use devfreq_list_lock around list_del() to prevent list corruption.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/devfreq/devfreq.c