git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
watchdog: irq: Remove IRQF_DISABLED
[pandora-kernel.git]
/
drivers
/
video
/
fbsysfs.c
diff --git
a/drivers/video/fbsysfs.c
b/drivers/video/fbsysfs.c
index
04251ce
..
67afa9c
100644
(file)
--- a/
drivers/video/fbsysfs.c
+++ b/
drivers/video/fbsysfs.c
@@
-399,9
+399,12
@@
static ssize_t store_fbstate(struct device *device,
state = simple_strtoul(buf, &last, 0);
+ if (!lock_fb_info(fb_info))
+ return -ENODEV;
console_lock();
fb_set_suspend(fb_info, (int)state);
console_unlock();
+ unlock_fb_info(fb_info);
return count;
}