From: Vincent Li Date: Tue, 22 Sep 2009 23:45:36 +0000 (-0700) Subject: fs/proc/task_mmu.c v1: fix clear_refs_write() input sanity check X-Git-Tag: v2.6.32-rc1~313 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb92a4b068be96799da3748c11cbd69760e44d7b;p=pandora-kernel.git fs/proc/task_mmu.c v1: fix clear_refs_write() input sanity check Andrew Morton pointed out similar string hacking and obfuscated check for zero-length input at the end of the function, David Rientjes suggested to use strict_strtol to replace simple_strtol, this patch cover above suggestions, add removing of leading and trailing whitespace from user input. It does not change function behavious. Signed-off-by: Vincent Li Acked-by: David Rientjes Cc: Matt Mackall Cc: Amerigo Wang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed