summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/arcfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/arcfb.c')
-rw-r--r--drivers/video/fbdev/arcfb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c
index 088c4b30fd31..7750e020839e 100644
--- a/drivers/video/fbdev/arcfb.c
+++ b/drivers/video/fbdev/arcfb.c
@@ -451,6 +451,9 @@ static ssize_t arcfb_write(struct fb_info *info, const char __user *buf,
struct arcfb_par *par;
unsigned int xres;
+ if (!info->screen_buffer)
+ return -ENODEV;
+
p = *ppos;
par = info->par;
xres = info->var.xres;