summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohann Felix Soden2008-03-11 16:44:26 +0100
committerLen Brown2008-03-12 22:57:22 +0100
commitc8dc9de10951609492f0d0282a61e2b2eec385c8 (patch)
tree7dd5fa955ed3873d653515ac7f0792c9507b1388 /drivers
parentACPICA: Warn if packages with invalid references are evaluated (diff)
downloadkernel-qcow2-linux-c8dc9de10951609492f0d0282a61e2b2eec385c8.tar.gz
kernel-qcow2-linux-c8dc9de10951609492f0d0282a61e2b2eec385c8.tar.xz
kernel-qcow2-linux-c8dc9de10951609492f0d0282a61e2b2eec385c8.zip
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 <johfel@users.sourceforge.net> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/system.c b/drivers/acpi/system.c
index 55cf4c05bb74..4749f379a915 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)