diff options
author | Len Brown <len.brown@intel.com> | 2005-12-01 06:39:41 (GMT) |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-12-01 06:39:41 (GMT) |
commit | b7639dafb4e175ddd637425da5ff65f03e08028e (patch) | |
tree | 2db15153df1b09b9320a0357696040f59bcebe50 /drivers | |
parent | c8734a9663806b7ebd3b5e33bae65a60ff6553bd (diff) | |
parent | 59d399d357a7705568f424c6e861ee8657f7f655 (diff) | |
download | linux-b7639dafb4e175ddd637425da5ff65f03e08028e.tar.xz |
Pull 5571 into release branch
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index f051b15..d10668f 100644 --- 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)) |