]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: Fix acpi_evaluate_object_typed()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Aug 2017 20:44:13 +0000 (22:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Aug 2017 20:44:13 +0000 (22:44 +0200)
commitb0094fb6270e7136c22b6f885cad4cb7e5b261b7
treed9c83e571554f5524794343286144cf99e157e30
parentb69f9ae530642ece2cbfa430a679c3b330c65600
ACPICA: Fix acpi_evaluate_object_typed()

Commit 1fb42ac23dde (ACPICA: Update two error messages to emit
control method name) causes acpi_evaluate_object_typed() to fail
if its pathname argument is NULL, but some callers of that function
in the kernel, particularly acpi_nondev_subnode_data_ok(), pass
NULL as pathname to it and expect it to work.

For this reason, make acpi_evaluate_object_typed() check if its
pathname argument is NULL and fall back to using the pathname of
its handle argument if that is the case.

Reported-by: Sakari Ailus <sakari.ailus@intel.com>
Tested-by: Yang, Hyungwoo <hyungwoo.yang@intel.com>
Fixes: 1fb42ac23dde (ACPICA: Update two error messages to emit control method name)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/nsxfeval.c