Skip to content
Commit c88c5786 authored by Danny Baumann's avatar Danny Baumann Committed by Len Brown
Browse files

ACPI: Video: Increase buffer size for writes to brightness proc file.



In order to be able to write the value "100"
to /proc/acpi/video/.../brightness, we have to allocate 5 bytes:
4 characters will be written (1, 0, 0 plus null byte),
and 1 byte should be buffer for a terminating NULL character.

http://bugzilla.kernel.org/show_bug.cgi?id=9278

Signed-off-by: default avatarDanny Baumann <dannybaumann@web.de>
Acked-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent a4f0c276
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