Pull 5571 into release branch

This commit is contained in:
Len Brown 2005-12-01 01:39:41 -05:00
commit b7639dafb4
1 changed files with 1 additions and 1 deletions

View File

@ -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))