summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2022-03-01 01:05:32 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-03-01 20:51:11 +0300
commitba7ffcd4c4da374b0f64666354eeeda7d3827131 (patch)
treebc20ecb6ad428773c0d2b60b5d401d951db41b1c /samples
parent444e1154b2bf0b881b65ba1bba5bc8e691fac04a (diff)
downloadlinux-ba7ffcd4c4da374b0f64666354eeeda7d3827131.tar.xz
PM: hibernate: fix __setup handler error handling
If an invalid value is used in "resumedelay=<seconds>", it is silently ignored. Add a warning message and then let the __setup handler return 1 to indicate that the kernel command line option has been handled. Fixes: 317cf7e5e85e3 ("PM / hibernate: convert simple_strtoul to kstrtoul") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reported-by: Igor Zhbanov <i.zhbanov@omprussia.ru> Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions