[PATCH] drivers: video: efi-gop: fix null reference pointer on priv->fb.mode=NULL.
chalianis1 at gmail.com
chalianis1 at gmail.com
Wed Aug 27 21:14:19 PDT 2025
From: Chali Anis <chalianis1 at gmail.com>
fix a null reference pointer on mode variable, that was never initialized,
the mode will be set by the framebuffer subsyetem after initialisation so
it's not necessary to change the resolution here.
Fixes: 6518b21c6c66 ("video: add EFI Graphics Output Protocol support")
Signed-off-by: Chali Anis <chalianis1 at gmail.com>
---
drivers/video/efi_gop.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/video/efi_gop.c b/drivers/video/efi_gop.c
index f4f58d9271f5..cef8a6816cac 100644
--- a/drivers/video/efi_gop.c
+++ b/drivers/video/efi_gop.c
@@ -169,8 +169,6 @@ static int efi_gop_query(struct efi_gop_priv *priv)
priv->fb.screen_base = mode->frame_buffer_base;
priv->mode = mode->mode;
- priv->fb.xres = priv->fb.mode->xres;
- priv->fb.yres = priv->fb.mode->yres;
return 0;
}
--
2.34.1
More information about the barebox
mailing list