git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c8734a9
)
Pull 5571 into release branch
author
Len Brown
<len.brown@intel.com>
Thu, 1 Dec 2005 06:39:41 +0000
(
01:39
-0500)
committer
Len Brown
<len.brown@intel.com>
Thu, 1 Dec 2005 06:39:41 +0000
(
01:39
-0500)
drivers/acpi/video.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/video.c
b/drivers/acpi/video.c
index
f051b15
..
d10668f
100644
(file)
--- a/
drivers/acpi/video.c
+++ b/
drivers/acpi/video.c
@@
-812,7
+812,7
@@
acpi_video_device_write_brightness(struct file *file,
ACPI_FUNCTION_TRACE("acpi_video_device_write_brightness");
- if (!dev || count + 1 > sizeof str)
+ if (!dev ||
!dev->brightness ||
count + 1 > sizeof str)
return_VALUE(-EINVAL);
if (copy_from_user(str, buffer, count))