Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7639daf authored by Len Brown's avatar Len Brown
Browse files

Pull 5571 into release branch

parents c8734a96 59d399d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))