Move source tree closer to the 2.6.32.17 mainline
/drivers/char/agp/hp-agp.c
blob:9047b2714653c54ef3c0130f30e09cd98e0bc534 -> blob:dc8a6f70483b51a8f1c1945959fcf4cbc552bfaa
--- drivers/char/agp/hp-agp.c
+++ drivers/char/agp/hp-agp.c
@@ -488,9 +488,8 @@ zx1_gart_probe (acpi_handle obj, u32 dep
handle = obj;
do {
status = acpi_get_object_info(handle, &info);
- if (ACPI_SUCCESS(status)) {
+ if (ACPI_SUCCESS(status) && (info->valid & ACPI_VALID_HID)) {
/* TBD check _CID also */
- info->hardware_id.string[sizeof(info->hardware_id.length)-1] = '\0';
match = (strcmp(info->hardware_id.string, "HWP0001") == 0);
kfree(info);
if (match) {