Bjorn Helgaas b24715027a 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 <bjorn.helgaas@hp.com>
CC: Lin Ming <ming.m.lin@intel.com>
CC: Bob Moore <robert.moore@intel.com>
CC: Gary Hade <garyhade@us.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-09-25 14:24:22 -04:00
..
2009-07-12 12:22:34 -07:00
2005-04-16 15:20:36 -07:00
2009-07-12 12:22:34 -07:00
2005-04-16 15:20:36 -07:00
2009-07-12 12:22:34 -07:00
2009-09-14 17:39:05 -07:00
2009-09-17 10:06:36 -07:00
2009-09-17 10:06:36 -07:00
2009-09-17 10:06:31 -07:00
2008-06-10 14:37:03 -07:00
2005-04-16 15:20:36 -07:00