From: Dan Carpenter Date: Wed, 14 May 2014 16:08:46 +0000 (+0300) Subject: PM / hibernate: Fix memory corruption in resumedelay_setup() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6514be5fe7fe796041b673bad769510414ff2b9;p=pandora-kernel.git 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 Acked-by: Pavel Machek Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed