summaryrefslogtreecommitdiff
path: root/include/linux/pm_runtime.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-05-14 19:08:46 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-05-16 23:15:05 +0200
commitf6514be5fe7fe796041b673bad769510414ff2b9 (patch)
treec2d0104c293a571916d6f4a7844096aa287993a6 /include/linux/pm_runtime.h
parent317cf7e5e85e3ef9f23fc6dd8b2945ab4a258140 (diff)
PM / hibernate: Fix memory corruption in resumedelay_setup()
In the original code "resume_delay" is an int so on 64 bits, the call to kstrtoul() will cause memory corruption. We may as well fix a style issue here as well and make "resume_delay" unsigned int, since that's what we pass to ssleep(). Fixes: 317cf7e5e85e (PM / hibernate: convert simple_strtoul to kstrtoul) Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_runtime.h')
0 files changed, 0 insertions, 0 deletions