diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-09-21 21:28:49 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-09-25 20:24:22 +0200 |
commit | b24715027aab5e586c4ab1d035f3e543307dea69 (patch) | |
tree | 01688402d1694b42f9821e00fc6b4b0913de397f /drivers/acpi | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 (diff) | |
download | linux-b24715027aab5e586c4ab1d035f3e543307dea69.tar.xz linux-b24715027aab5e586c4ab1d035f3e543307dea69.zip |
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>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions