]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: Namespace: Properly null terminate objects detached from a namespace node
authorDavid E. Box <david.e.box@linux.intel.com>
Tue, 8 Jul 2014 02:06:24 +0000 (10:06 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 8 Jul 2014 12:22:25 +0000 (14:22 +0200)
commit3c7b1446c55f5fc2217ad0aa54b2c2d6db4162a2
tree1abe5f05beea0d796157fdfe4036c47cc526be38
parent03400e517019da66aac64dcf395a3d19c03b603e
ACPICA: Namespace: Properly null terminate objects detached from a namespace node

Fixes a bug exposed by an ACPICA unit test around the
acpi_attach_data()/acpi_detach_data() APIs where the failure to null
terminate a detached object led to the creation of a circular linked list
(and infinite looping) when the object is reattached.

Reported in acpica bugzilla #1063

Link: https://bugs.acpica.org/show_bug.cgi?id=1063
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Cc: 3.15+ <stable@vger.kernel.org> # 3.15+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/nsobject.c