From patchwork Sat Mar 14 01:11:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 11968 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2E1MQwC001976 for ; Sat, 14 Mar 2009 01:22:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755407AbZCNBVg (ORCPT ); Fri, 13 Mar 2009 21:21:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754149AbZCNBVf (ORCPT ); Fri, 13 Mar 2009 21:21:35 -0400 Received: from kroah.org ([198.145.64.141]:35870 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754403AbZCNBVd (ORCPT ); Fri, 13 Mar 2009 21:21:33 -0400 Received: from localhost (c-76-105-230-205.hsd1.or.comcast.net [76.105.230.205]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by coco.kroah.org (Postfix) with ESMTPSA id D1234491B9; Fri, 13 Mar 2009 18:21:29 -0700 (PDT) X-Mailbox-Line: From gregkh@mini.kroah.org Fri Mar 13 18:10:47 2009 Message-Id: <20090314011047.577830206@mini.kroah.org> User-Agent: quilt/0.48-1 Date: Fri, 13 Mar 2009 18:11:26 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org, Len Brown Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , Jake Edge , Eugene Teo , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, linux-acpi@vger.kernel.org, Lin Ming , Henrique de Moraes Holschuh Subject: [patch 109/114] ACPI: fix broken usage of acpi_ut_get_node_name() References: <20090314010937.416083662@mini.kroah.org> Content-Disposition: inline; filename=acpi-fix-broken-usage-of-acpi_ut_get_node_name.patch Lines: 32 In-Reply-To: <20090314011649.GA26170@kroah.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org 2.6.28-stable review patch. If anyone has any objections, please let us know. ------------------ From: Henrique de Moraes Holschuh This issue was fixed indirectly in mainline by commit 60a4ce7f4148155d3f28eea4a213f7ee47cd57b7. acpi_ut_get_node_name() returns a four char fixed-size array, not NULL-terminated. This is the minimal fix for stable 2.6.28. Signed-off-by: Henrique de Moraes Holschuh Cc: stable@kernel.org Acked-by: Lin Ming Acked-by: Len Brown Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c @@ -151,7 +151,7 @@ static int acpi_power_get_state(acpi_han *state = (sta & 0x01)?ACPI_POWER_RESOURCE_STATE_ON: ACPI_POWER_RESOURCE_STATE_OFF; - ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] is %s\n", + ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%4.4s] is %s\n", acpi_ut_get_node_name(handle), *state ? "on" : "off"));