From: Bjorn Helgaas Date: Mon, 21 Sep 2009 19:28:49 +0000 (+0000) Subject: ACPICA: fixup after acpi_get_object_info() change X-Git-Tag: v2.6.32-rc1~18^2~2^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b24715027aab5e586c4ab1d035f3e543307dea69;p=pandora-kernel.git ACPICA: fixup after acpi_get_object_info() change Commit 15b8dd53f5ffa changed info->hardware_id from a static array to a pointer. If hardware_id is non-NULL, it points to a NULL-terminated string, so we don't need to terminate it explicitly. However, it may be NULL; in that case, we *can't* add a NULL terminator. This causes a NULL pointer dereference oops for devices without _HID. Signed-off-by: Bjorn Helgaas CC: Lin Ming CC: Bob Moore CC: Gary Hade Signed-off-by: Len Brown --- Reading git-diff-tree failed