From 3a51216608214329f2955178314516f22139daf6 Mon Sep 17 00:00:00 2001 From: shenchenkai Date: Mon, 16 Jan 2023 06:57:00 +0000 Subject: [PATCH] hilog: fix dos error ohos inclusion category: bugfix bugzilla: NA issue: #I6AQBJ CVE: NA ----------------------------------- fix hilog driver dos error Signed-off-by: shenchenkai --- drivers/staging/hilog/hilog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/hilog/hilog.c b/drivers/staging/hilog/hilog.c index af490cdaa291..4e6168ce787e 100644 --- a/drivers/staging/hilog/hilog.c +++ b/drivers/staging/hilog/hilog.c @@ -273,7 +273,7 @@ static void hilog_cover_old_log(size_t buf_len) static bool is_last_time_full; bool is_this_time_full = false; - while (total_size + hilog_dev.size >= HILOG_BUFFER) { + while (total_size + hilog_dev.size > HILOG_BUFFER) { retval = hilog_read_ring_head_buffer((unsigned char *)&header, sizeof(header)); if (retval < 0) -- Gitee