PM: Avoid calling kfree() under spinlock in dev_pm_put_subsys_data()
authorShuah Khan <shuah.kh@samsung.com>
Tue, 7 May 2013 23:14:32 +0000 (01:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 12 May 2013 12:04:40 +0000 (14:04 +0200)
commitd5e1670afe0c886d6dd92afb7a1f085f88294dc8
tree8b149c761385bc0d7861cabc06ca06cb3017f723
parentf722406faae2d073cc1d01063d1123c35425939e
PM: Avoid calling kfree() under spinlock in dev_pm_put_subsys_data()

Fix dev_pm_put_subsys_data() so that it doesn't call kfree() under
a spinlock and make it return 1 whenever it leaves NULL
power.subsys_data (regardless of the reason).

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/common.c