sbshc: acpi_device_class "smbus_host_controller" 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:25 +0000 (02:38 -0400)
commit97c227cb51ddcf52c66f7a7fba69237026418b56
tree68833613ebe79fb7cec38d3ff0be3a457844fe5b
parent18262714ca0fb65c290b8ea1807b2b02bb52d0e3
sbshc: acpi_device_class "smbus_host_controller" too long

acpi_device_class can only be 19 characters and a NULL terminator.

With the current name we get a buffer overflow in acpi_smbus_hc_add()
when we do:
strcpy(acpi_device_class(device), ACPI_SMB_HC_CLASS);

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sbshc.c