ACPI: Video: Increase buffer size for writes to brightness proc file.
authorDanny Baumann <dannybaumann@web.de>
Fri, 2 Nov 2007 12:47:53 +0000 (13:47 +0100)
committerLen Brown <len.brown@intel.com>
Mon, 19 Nov 2007 06:55:13 +0000 (01:55 -0500)
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: Danny Baumann <dannybaumann@web.de>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

No differences found