armbian-build/patch/misc/bootsplash-5.19.y-Revert-fbdev-fbcon-release-buffer-when-fbcon_do_set.patch
2022-12-31 15:00:31 +01:00

29 lines
903 B
Diff

From 729b2d566888ddc24edd9887098b80af3fc4269f Mon Sep 17 00:00:00 2001
From: Igor Pecovnik <igor.pecovnik@gmail.com>
Date: Sat, 31 Dec 2022 14:27:32 +0100
Subject: [PATCH] Revert "fbdev: fbcon: release buffer when fbcon_do_set_font()
failed"
This reverts commit 88ec6d11052da527eb9268831e7a9bc5bbad02f6.
---
drivers/video/fbdev/core/fbcon.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c
index df40360e04ff..1f37904b0405 100644
--- a/drivers/video/fbdev/core/fbcon.c
+++ b/drivers/video/fbdev/core/fbcon.c
@@ -2462,8 +2462,7 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h, int charcount,
if (userfont) {
p->userfont = old_userfont;
- if (--REFCOUNT(data) == 0)
- kfree(data - FONT_EXTRA_WORDS * sizeof(int));
+ REFCOUNT(data)--;
}
vc->vc_font.width = old_width;
--
2.34.1