sys_prctl(): arg2 is unsigned long which is never < 0
authorChen Gang <gang.chen@asianux.com>
Fri, 22 Feb 2013 00:43:06 +0000 (16:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:20 +0000 (17:22 -0800)
commit7fe5e04292e71af34ae171b88caa2a139e0b6125
tree5bae0bf98e77442626c61ad57d3121440d599f09
parent242260fb858e99674289484bc2bfe3b41f9c4cbb
sys_prctl(): arg2 is unsigned long which is never < 0

arg2 will never < 0, for its type is 'unsigned long'

Also, use the provided macros.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Reported-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c