diff options
Diffstat (limited to 'drivers/video/fbsysfs.c')
-rw-r--r-- | drivers/video/fbsysfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/fbsysfs.c b/drivers/video/fbsysfs.c index 04251ce8918..67afa9c2289 100644 --- a/drivers/video/fbsysfs.c +++ b/drivers/video/fbsysfs.c | |||
@@ -399,9 +399,12 @@ static ssize_t store_fbstate(struct device *device, | |||
399 | 399 | ||
400 | state = simple_strtoul(buf, &last, 0); | 400 | state = simple_strtoul(buf, &last, 0); |
401 | 401 | ||
402 | if (!lock_fb_info(fb_info)) | ||
403 | return -ENODEV; | ||
402 | console_lock(); | 404 | console_lock(); |
403 | fb_set_suspend(fb_info, (int)state); | 405 | fb_set_suspend(fb_info, (int)state); |
404 | console_unlock(); | 406 | console_unlock(); |
407 | unlock_fb_info(fb_info); | ||
405 | 408 | ||
406 | return count; | 409 | return count; |
407 | } | 410 | } |