]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: buffer array too short in drivers/acpi/system.c
authorJohann Felix Soden <johfel@gmx.de>
Tue, 11 Mar 2008 15:44:26 +0000 (16:44 +0100)
committerLen Brown <len.brown@intel.com>
Wed, 12 Mar 2008 21:57:22 +0000 (17:57 -0400)
Since "ff_gbl_lock" has a length of 11 chars and is copied with sprintf
to char buffer[10], there is a problem. We need char buffer[12] because
of the closing zero byte.

Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/system.c

index 55cf4c05bb74edc7714ddb4a000b729395feb291..4749f379a915a4c4f6308f21b21de4205f399387 100644 (file)
@@ -319,7 +319,7 @@ void acpi_irq_stats_init(void)
                goto fail;
 
        for (i = 0; i < num_counters; ++i) {
-               char buffer[10];
+               char buffer[12];
                char *name;
 
                if (i < num_gpes)