Prev: early_res: seperate common memmap func from e820.c to fw_memmap.cy
Next: [PATCH 5/5] cpufreq: Add support for actual freq
From: Darrick J. Wong on 22 Mar 2010 14:20 On Fri, Mar 19, 2010 at 02:49:20PM +0300, Dan Carpenter wrote: > acpi_device_class can only be 19 characters and a NULL terminator. > > The current code has a buffer overflow in acpi_power_meter_add(): > strcpy(acpi_device_class(device), ACPI_POWER_METER_CLASS); > > Signed-off-by: Dan Carpenter <error27(a)gmail.com> > --- > Feel free to change the name to anything you like. How hard would it be to increase the size of that buffer? (Or, is there a need to have "_resource" in that string at all?) --D -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |