diff options
| author | Vincent Li <[email protected]> | 2009-09-22 16:45:36 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-23 07:39:40 -0700 |
| commit | fb92a4b068be96799da3748c11cbd69760e44d7b (patch) | |
| tree | da10040b94e5a0b83de42008c369aa7c3242c333 /fs/proc/array.c | |
| parent | acef82b873b6899d80e639317228f2104dae79a2 (diff) | |
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 <[email protected]>
Acked-by: David Rientjes <[email protected]>
Cc: Matt Mackall <[email protected]>
Cc: Amerigo Wang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions