Re: [PATCH v2] kernel: arg2 is unsigned long which is never < 0

From: Kees Cook
Date: Sat Feb 16 2013 - 02:44:55 EST

On Fri, Feb 15, 2013 at 8:13 PM, Chen Gang <gang.chen@xxxxxxxxxxx> wrote:
> arg2 will never < 0, for its type is 'unsigned long'
> so need beautify the relative source code (better to use macros).
> Reported-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
> Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx>

Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>


Kees Cook
Chrome OS Security
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at