From 04beae82226fe336a99f1e44e9f85f23b3e925a6 Mon Sep 17 00:00:00 2001 From: buzhenwang Date: Fri, 13 Jan 2023 10:12:22 +0800 Subject: [PATCH] fixed d78d8d1 from https://gitee.com/buzhenwang/kernel_linux_4.19/pulls/82 modify Dos error Signed-off-by: buzhenwang --- 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 4ae6b7bf75ac..b641190431b0 100644 --- a/drivers/staging/hilog/hilog.c +++ b/drivers/staging/hilog/hilog.c @@ -259,7 +259,7 @@ static void hilog_cover_old_log(size_t buf_len) size_t total_size = buf_len + sizeof(struct hilog_entry); int drop_log_lines = 0; - 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