diff options
| author | Dan Carpenter <[email protected]> | 2014-05-14 16:08:46 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2014-05-16 21:15:05 +0000 |
| commit | f6514be5fe7fe796041b673bad769510414ff2b9 (patch) | |
| tree | c2d0104c293a571916d6f4a7844096aa287993a6 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | PM / hibernate: convert simple_strtoul to kstrtoul (diff) | |
| download | kernel-f6514be5fe7fe796041b673bad769510414ff2b9.tar.gz kernel-f6514be5fe7fe796041b673bad769510414ff2b9.zip | |
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 <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
