Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376501
b: refs/heads/master
c: 65ac057
h: refs/heads/master
i:
  376499: 7f237a6
v: v3
  • Loading branch information
Richard Genoud authored and Jean-Christophe PLAGNIOL-VILLARD committed May 31, 2013
1 parent 11fa73a commit b2408a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2436e8aa8abef2536dc3bfb554f8dcb3a8b07560
refs/heads/master: 65ac057bce426b4abdf42384c4e09e40a634df32
5 changes: 4 additions & 1 deletion trunk/drivers/video/atmel_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,11 @@ static int atmel_lcdfb_check_var(struct fb_var_screeninfo *var,
if (info->fix.smem_len) {
unsigned int smem_len = (var->xres_virtual * var->yres_virtual
* ((var->bits_per_pixel + 7) / 8));
if (smem_len > info->fix.smem_len)
if (smem_len > info->fix.smem_len) {
dev_err(dev, "Frame buffer is too small (%u) for screen size (need at least %u)\n",
info->fix.smem_len, smem_len);
return -EINVAL;
}
}

/* Saturate vertical and horizontal timings at maximum values */
Expand Down

0 comments on commit b2408a2

Please sign in to comment.