Commit b7639daf authored by Len Brown's avatar Len Brown

Pull 5571 into release branch

parents c8734a96 59d399d3
...@@ -812,7 +812,7 @@ acpi_video_device_write_brightness(struct file *file, ...@@ -812,7 +812,7 @@ acpi_video_device_write_brightness(struct file *file,
ACPI_FUNCTION_TRACE("acpi_video_device_write_brightness"); 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); return_VALUE(-EINVAL);
if (copy_from_user(str, buffer, count)) if (copy_from_user(str, buffer, count))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment