diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-ioctl.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c index d1f56d37405f..994f6a091b49 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c | |||
@@ -858,7 +858,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) | |||
858 | break; | 858 | break; |
859 | } | 859 | } |
860 | 860 | ||
861 | if (!display->driver->enable_te) { | 861 | if (!display || !display->driver->enable_te) { |
862 | r = -ENODEV; | 862 | r = -ENODEV; |
863 | break; | 863 | break; |
864 | } | 864 | } |
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index a545e8d4817f..db307e3c1dd5 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -1271,6 +1271,9 @@ static int omapfb_blank(int blank, struct fb_info *fbi) | |||
1271 | int do_update = 0; | 1271 | int do_update = 0; |
1272 | int r = 0; | 1272 | int r = 0; |
1273 | 1273 | ||
1274 | if (!display) | ||
1275 | return -EINVAL; | ||
1276 | |||
1274 | omapfb_lock(fbdev); | 1277 | omapfb_lock(fbdev); |
1275 | 1278 | ||
1276 | switch (blank) { | 1279 | switch (blank) { |