-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EFI console fix-multyplex-query_vidconsole
Signed-off-by: Artem Lapkin <[email protected]>
- Loading branch information
Artem Lapkin
committed
Aug 3, 2021
1 parent
8b2d79a
commit 8f02ed8
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...-boot-mainline/patches/v2021.07-rc1/9305-EFI-console-fix-multyplex-query_vidconsole.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From c3522c7afa96fdc2ad1e6bace9fb78b1c465a2cc Mon Sep 17 00:00:00 2001 | ||
From: Artem Lapkin <[email protected]> | ||
Date: Tue, 3 Aug 2021 15:48:09 +0800 | ||
Subject: [PATCH] EFI: console: fix multyplex query_vidconsole | ||
|
||
Signed-off-by: Artem Lapkin <[email protected]> | ||
--- | ||
lib/efi_loader/efi_console.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c | ||
index 7f916ce6..64f55852 100644 | ||
--- a/lib/efi_loader/efi_console.c | ||
+++ b/lib/efi_loader/efi_console.c | ||
@@ -319,7 +319,7 @@ static int __maybe_unused query_vidconsole(int *rows, int *cols) | ||
struct udevice *dev; | ||
struct vidconsole_priv *priv; | ||
|
||
- if (!stdout_name || strncmp(stdout_name, "vidconsole", 10)) | ||
+ if (!stdout_name || strstr(stdout_name, "vidconsole") == NULL) | ||
return -ENODEV; | ||
stdout_dev = stdio_get_by_name("vidconsole"); | ||
if (!stdout_dev) | ||
-- | ||
2.25.1 | ||
|