aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index ce6d8ea3131e..fa3805516dff 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1382,7 +1382,7 @@ void audit_log_n_string(struct audit_buffer *ab, const char *string,
1382int audit_string_contains_control(const char *string, size_t len) 1382int audit_string_contains_control(const char *string, size_t len)
1383{ 1383{
1384 const unsigned char *p; 1384 const unsigned char *p;
1385 for (p = string; p < (const unsigned char *)string + len && *p; p++) { 1385 for (p = string; p < (const unsigned char *)string + len; p++) {
1386 if (*p == '"' || *p < 0x21 || *p > 0x7e) 1386 if (*p == '"' || *p < 0x21 || *p > 0x7e)
1387 return 1; 1387 return 1;
1388 } 1388 }