summaryrefslogtreecommitdiffstats
path: root/drivers/video/fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fb.c')
-rw-r--r--drivers/video/fb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/fb.c b/drivers/video/fb.c
index 5e829e832d..c9d184d502 100644
--- a/drivers/video/fb.c
+++ b/drivers/video/fb.c
@@ -124,6 +124,9 @@ static int fb_enable_set(struct param_d *param, void *priv)
struct fb_info *info = priv;
int enable;
+ if (!info->mode)
+ return -EINVAL;
+
enable = info->p_enable;
if (enable)