summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/tbfind.c
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2016-09-13 12:48:21 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-09-17 02:07:57 +0300
commit86ec64bc382ad1e0e6bc66f5f705a53e299a3445 (patch)
tree20d76e21c5b9ca52f0229388e4030b602948a97c /drivers/acpi/acpica/tbfind.c
parentcb7d668fa4f9e9dcc772bd84f13f978a5e8791be (diff)
downloadlinux-86ec64bc382ad1e0e6bc66f5f705a53e299a3445.tar.xz
ACPICA: Tables: Fix a regression in acpi_tb_find_table()
In the following commit, the return value of acpi_tb_find_table() is incorrect: commit ac0f06ebb815dabe42f2b2886ee9f879a2170ce4 Author: Lv Zheng <lv.zheng@intel.com> Date: Wed Sep 7 14:07:24 2016 +0800 ACPICA: Tables: Tune table mutex to be a leaf lock ACPICA commit f564d57c6501b97a2871f0b4c048e79910f71783 This causes LoadTable opcode to fail. Fix this mistake. Signed-off-by: Lv Zheng <lv.zheng@intel.com> [ rjw: Changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/tbfind.c')
-rw-r--r--drivers/acpi/acpica/tbfind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/tbfind.c b/drivers/acpi/acpica/tbfind.c
index a3f7b3789cdc..f6b9b4e4298b 100644
--- a/drivers/acpi/acpica/tbfind.c
+++ b/drivers/acpi/acpica/tbfind.c
@@ -152,5 +152,5 @@ acpi_tb_find_table(char *signature,
unlock_and_exit:
(void)acpi_ut_release_mutex(ACPI_MTX_TABLES);
- return_ACPI_STATUS(AE_NOT_FOUND);
+ return_ACPI_STATUS(status);
}