aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/power
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-02-17 14:18:44 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-02-18 02:16:27 +0100
commit8cff66791a6bfc8fb98f93e4e7c13fd06afecf7a (patch)
treeea6f6398c46c1e2b106feaa858fdff94af8eb6db /Documentation/power
parentMerge back earlier suspend/hibernation changes for v4.11. (diff)
downloadlinux-dev-8cff66791a6bfc8fb98f93e4e7c13fd06afecf7a.tar.xz
linux-dev-8cff66791a6bfc8fb98f93e4e7c13fd06afecf7a.zip
PM / sleep: Fix test_suspend after sleep state rework
When passing "test_suspend=mem" to the kernel: PM: can't test 'mem' suspend state and the suspend test is not run. Commit 406e79385f3223d8 ("PM / sleep: System sleep state selection interface rework") changed pm_labels[] from a contiguous NULL-terminated array to a sparse array (with the first element unpopulated), breaking the assumptions of the iterator in setup_test_suspend(). Iterate from PM_SUSPEND_MIN to PM_SUSPEND_MAX - 1 to fix this. Fixes: 406e79385f3223d8 (PM / sleep: System sleep state selection interface rework) Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions