diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-10 13:18:06 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-10 13:18:06 +0200 |
commit | 11f26633cccb7243217370837cbb066a73f678a5 (patch) | |
tree | 4154ca8230215200b2970375c504dfbe94cc9425 /arch/sh/tools | |
parent | d19bdb876bece27187d4ffbc272672e1239cd313 (diff) |
PM: suspend: Fix platform_suspend_prepare_noirq()
After commit ac9eafbe930a ("ACPI: PM: s2idle: Execute LPS0 _DSM
functions with suspended devices"), a NULL pointer may be dereferenced
if suspend-to-idle is attempted on a platform without "traditional"
suspend support due to invalid fall-through in
platform_suspend_prepare_noirq().
Fix that and while at it add missing braces in platform_resume_noirq().
Fixes: ac9eafbe930a ("ACPI: PM: s2idle: Execute LPS0 _DSM functions with suspended devices")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/sh/tools')
0 files changed, 0 insertions, 0 deletions