ACPICA: Fix for a Store->ArgX when ArgX contains a reference to a field.
authorBob Moore <robert.moore@intel.com>
Fri, 6 Sep 2013 06:27:15 +0000 (14:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:11:40 +0000 (11:11 -0800)
commit217e7268258cf7a23196093dc828a0d0736aeb13
tree03d9a0a204434d047ecfdb061e03c05ab0db4a78
parent97020dadef81be7b3f1af758406a97d02c1cfa6b
ACPICA: Fix for a Store->ArgX when ArgX contains a reference to a field.

commit 4be4be8fee2ee99a52f94f90d03d2f287ee1db86 upstream.

This change fixes a problem where a Store operation to an ArgX object
that contained a reference to a field object did not complete the
automatic dereference and then write to the actual field object.
Instead, the object type of the field object was inadvertently changed
to match the type of the source operand. The new behavior will actually
write to the field object (buffer field or field unit), thus matching
the correct ACPI-defined behavior.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/acpica/exstore.c