From 9b388ac30375ad4e0259b264a006753edcb2bd3c Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Thu, 28 Jan 2021 09:45:47 +0200 Subject: [PATCH] loader: unload command should reset tg_kernel_supported in gfx_state While loading kernel, we check if vt/vbe backend support is included in kernel and set the tg_kernel_supported flag in gfx_state. unload command needs to reset this flag to allow next load to perform this check with new kernel. Reported by: jhb --- stand/common/module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/common/module.c b/stand/common/module.c index 247fc54b602..34ffc10cded 100644 --- a/stand/common/module.c +++ b/stand/common/module.c @@ -271,6 +271,8 @@ unload(void) } loadaddr = 0; unsetenv("kernelname"); + /* Reset tg_kernel_supported to allow next load to check it again. */ + gfx_state.tg_kernel_supported = false; } COMMAND_SET(unload, "unload", "unload all modules", command_unload); -- 2.45.0