gop: Fix potential integer overflow in pitch calculation
diff --git a/common/drivers/gop.c b/common/drivers/gop.c
index e10d1d60..5dbdc8d6 100644
--- a/common/drivers/gop.c
+++ b/common/drivers/gop.c
@@ -89,7 +89,7 @@ static bool mode_to_fb_info(struct fb_info *ret, EFI_GRAPHICS_OUTPUT_PROTOCOL *g
}
ret->memory_model = 0x06;
- ret->framebuffer_pitch = mode_info->PixelsPerScanLine * (ret->framebuffer_bpp / 8);
+ ret->framebuffer_pitch = (uint64_t)mode_info->PixelsPerScanLine * (ret->framebuffer_bpp / 8);
ret->framebuffer_width = mode_info->HorizontalResolution;
ret->framebuffer_height = mode_info->VerticalResolution;
