acpi_pad: "processor_aggregator" name too long
authorDan Carpenter <error27@gmail.com>
Tue, 27 Apr 2010 21:06:05 +0000 (14:06 -0700)
committerLen Brown <len.brown@intel.com>
Thu, 6 May 2010 06:38:23 +0000 (02:38 -0400)
commita40770a9537c72b555667851845e73484b22ba17
tree36988e0ec7845bd560a927bdf3034f8b8888d02f
parent722154e4cacf015161efe60009ae9be23d492296
acpi_pad: "processor_aggregator" name too long

cpi_device_class can only be 19 characters and a NULL terminator.

With the current name we get a buffer overflow in acpi_pad_add()
strcpy(acpi_device_class(device), ACPI_PROCESSOR_AGGREGATOR_CLASS);

[akpm@linux-foundation.org: call it acpi_pad, per Shaohua Li]
Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: walter harms <wharms@bfs.de>
Acked-by: Shaohua Li <shaohua.li@intel.com>
Cc: Len Brown <lenb@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpi_pad.c