From: Henrique de Moraes Holschuh Date: Tue, 24 Feb 2009 14:48:17 +0000 (-0300) Subject: ACPI: fix broken usage of name.ascii X-Git-Tag: v2.6.27.20~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccb70f512886da9bd392d70c846f9110fd507544;p=pandora-kernel.git ACPI: fix broken usage of name.ascii This issue was fixed indirectly in mainline by commit 0175d562a29ad052c510782c7e76bc63d5155b9b. acpi_namespace_node's name.ascii field is four chars, and not NULL- terminated except by pure luck. So, it cannot be used by sscanf() without a length restriction. This is the minimal fix for both stable 2.6.27 and 2.6.28. Signed-off-by: Henrique de Moraes Holschuh Cc: Lin Ming Cc: Len Brown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed