limine: Fix NULL term dereference bug if gterm_init fails
This commit is contained in:
parent
b5fa979581
commit
f5d6ea44a2
@ -551,8 +551,10 @@ term_fail:
|
|||||||
goto skip_fb_init;
|
goto skip_fb_init;
|
||||||
FEAT_END
|
FEAT_END
|
||||||
|
|
||||||
term->deinit(term, pmm_free);
|
if (term != NULL) {
|
||||||
term = NULL;
|
term->deinit(term, pmm_free);
|
||||||
|
term = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!fb_init(&fb, req_width, req_height, req_bpp)) {
|
if (!fb_init(&fb, req_width, req_height, req_bpp)) {
|
||||||
goto no_fb;
|
goto no_fb;
|
||||||
|
Loading…
Reference in New Issue
Block a user