ACPICA: Tables: Don't release ACPI_MTX_TABLES in acpi_tb_install_standard_table().
authorOctavian Purdila <octavian.purdila@intel.com>
Mon, 13 Apr 2015 03:49:05 +0000 (11:49 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 14 Apr 2015 12:51:52 +0000 (14:51 +0200)
commit77ddc2fe08329e375505bc36a3df3233fe57317b
treeb35a7496cf8e4fc0a2c7d0ef04ce1e93aed138af
parent2b8760100e1de69b6ff004c986328a82947db4ad
ACPICA: Tables: Don't release ACPI_MTX_TABLES in acpi_tb_install_standard_table().

ACPICA commit c70434d4da13e65b6163c79a5aa16b40193631c7

ACPI_MTX_TABLES is acquired and released by the callers of
acpi_tb_install_standard_table() so releasing it in the function itself is
causing the following error in Linux kernel if the table is reloaded:

ACPI Error: Mutex [0x2] is not acquired, cannot release (20141107/utmutex-321)
Call Trace:
  [<ffffffff81b0bd48>] dump_stack+0x4f/0x7b
  [<ffffffff81546bf5>] acpi_ut_release_mutex+0x47/0x67
  [<ffffffff81544357>] acpi_load_table+0x73/0xcb

Link: https://github.com/acpica/acpica/commit/c70434d4
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Cc: 3.16+ <stable@vger.kernel.org> # 3.16+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/tbinstal.c