[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] video: skip 'text' gfxpayload if not supported, to fallback to d
From: |
Mathieu Trudel-Lapierre |
Subject: |
[PATCH] video: skip 'text' gfxpayload if not supported, to fallback to default |
Date: |
Mon, 29 Apr 2019 13:57:02 -0400 |
On UEFI, 'text' gfxpayload is not supported, but we still reach parse_modespec
with it, which will obviously fail. Fortunately, whatever gfxpayload is set,
we still still have the 'auto' default to fall back to. Allow getting to this
fallback by not trying to parse 'text' as a modespec.
This is because 'text' correctly doesn't parse as a modespec, and ought to have
been ignored before we got to that point, just like it is immediately picked if
we're running on a system where 'text' is a supported video mode.
Bug: https://savannah.gnu.org/bugs/index.php?56217
Signed-off-by: Mathieu Trudel-Lapierre <address@hidden>
Patch-Name: skip_text_gfxpayload_where_not_supported.patch
---
grub-core/video/video.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/grub-core/video/video.c b/grub-core/video/video.c
index f252663c1..983424107 100644
--- a/grub-core/video/video.c
+++ b/grub-core/video/video.c
@@ -663,6 +663,8 @@ grub_video_set_mode (const char *modestring,
return GRUB_ERR_NONE;
}
+ else
+ continue;
}
err = parse_modespec (current_mode, &width, &height, &depth);
--
2.20.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] video: skip 'text' gfxpayload if not supported, to fallback to default,
Mathieu Trudel-Lapierre <=