aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/power/main.c
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2022-02-28 14:05:44 -0800
committerRafael J. Wysocki <[email protected]>2022-03-01 18:55:07 +0100
commit7a64ca17e4dd50d5f910769167f3553902777844 (patch)
treecde60691a1404e192dac5d8e0b95dadc61a14e96 /drivers/base/power/main.c
parentba7ffcd4c4da374b0f64666354eeeda7d3827131 (diff)
PM: suspend: fix return value of __setup handler
If an invalid option is given for "test_suspend=<option>", the entire string is added to init's environment, so return 1 instead of 0 from the __setup handler. Unknown kernel command line parameters "BOOT_IMAGE=/boot/bzImage-517rc5 test_suspend=invalid" and Run /sbin/init as init process with arguments: /sbin/init with environment: HOME=/ TERM=linux BOOT_IMAGE=/boot/bzImage-517rc5 test_suspend=invalid Fixes: 2ce986892faf ("PM / sleep: Enhance test_suspend option with repeat capability") Fixes: 27ddcc6596e5 ("PM / sleep: Add state field to pm_states[] entries") Fixes: a9d7052363a6 ("PM: Separate suspend to RAM functionality from core") Signed-off-by: Randy Dunlap <[email protected]> Reported-by: Igor Zhbanov <[email protected]> Link: lore.kernel.org/r/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/base/power/main.c')
0 files changed, 0 insertions, 0 deletions