summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/vermilion/vermilion.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/vermilion/vermilion.c')
-rw-r--r--drivers/video/fbdev/vermilion/vermilion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/vermilion/vermilion.c b/drivers/video/fbdev/vermilion/vermilion.c
index 6f8d444eb0e3..5172fa581147 100644
--- a/drivers/video/fbdev/vermilion/vermilion.c
+++ b/drivers/video/fbdev/vermilion/vermilion.c
@@ -651,7 +651,7 @@ static int vmlfb_check_var_locked(struct fb_var_screeninfo *var,
}
pitch = ALIGN((var->xres * var->bits_per_pixel) >> 3, 0x40);
- mem = pitch * var->yres_virtual;
+ mem = (u64)pitch * var->yres_virtual;
if (mem > vinfo->vram_contig_size) {
return -ENOMEM;
}