Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c88c5786d3df51ccfa4e2d111fc9c8fc0f5b2797
Commit:     c88c5786d3df51ccfa4e2d111fc9c8fc0f5b2797
Parent:     a4f0c2767e9c55123d7dad7176554e9d6e6056bc
Author:     Danny Baumann <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 2 13:47:53 2007 +0100
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Mon Nov 19 01:55:13 2007 -0500

    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: Danny Baumann <[EMAIL PROTECTED]>
    Acked-by: Zhang Rui <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/video.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index dce0a6e..44a0d9b 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -897,7 +897,7 @@ acpi_video_device_write_brightness(struct file *file,
 {
        struct seq_file *m = file->private_data;
        struct acpi_video_device *dev = m->private;
-       char str[4] = { 0 };
+       char str[5] = { 0 };
        unsigned int level = 0;
        int i;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to