tracing: Remove open-coding of hist trigger var_ref management
[platform/kernel/linux-rpi.git] / kernel / auditsc.c
index b2d1f04..1513873 100644 (file)
@@ -1107,7 +1107,7 @@ static void audit_log_execve_info(struct audit_context *context,
                }
 
                /* write as much as we can to the audit log */
-               if (len_buf > 0) {
+               if (len_buf >= 0) {
                        /* NOTE: some magic numbers here - basically if we
                         *       can't fit a reasonable amount of data into the
                         *       existing audit buffer, flush it and start with