projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'lkdtm-next' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux...
[linux-2.6-microblaze.git]
/
drivers
/
video
/
fbdev
/
vt8623fb.c
diff --git
a/drivers/video/fbdev/vt8623fb.c
b/drivers/video/fbdev/vt8623fb.c
index
7a959e5
..
a92a8c6
100644
(file)
--- a/
drivers/video/fbdev/vt8623fb.c
+++ b/
drivers/video/fbdev/vt8623fb.c
@@
-321,6
+321,9
@@
static int vt8623fb_check_var(struct fb_var_screeninfo *var, struct fb_info *inf
{
int rv, mem, step;
+ if (!var->pixclock)
+ return -EINVAL;
+
/* Find appropriate format */
rv = svga_match_format (vt8623fb_formats, var, NULL);
if (rv < 0)