From: Johann Felix Soden Date: Tue, 11 Mar 2008 15:44:26 +0000 (+0100) Subject: ACPI: buffer array too short in drivers/acpi/system.c X-Git-Tag: v2.6.25-rc6~19^2~2^3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c8dc9de10951609492f0d0282a61e2b2eec385c8;p=linux-2.6-omap-h63xx.git ACPI: buffer array too short in drivers/acpi/system.c 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 Signed-off-by: Len Brown --- diff --git a/drivers/acpi/system.c b/drivers/acpi/system.c index 55cf4c05bb7..4749f379a91 100644 --- a/drivers/acpi/system.c +++ b/drivers/acpi/system.c @@ -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)