"len" needs to be signed because audit_log_single_execve_arg() returns -1 and we want to check for that: len = audit_log_single_execve_arg(context, ab, i, &len_sent, p, buf); if (len <= 0) break; Signed-off-by: Dan Carpenter <error27@xxxxxxxxx> diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 3828ad5..2c060c3 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -1158,7 +1158,8 @@ static void audit_log_execve_info(struct audit_context *context, struct audit_aux_data_execve *axi) { int i; - size_t len, len_sent = 0; + ssize_t len; + size_t len_sent = 0; const char __user *p; char *buf; -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html