Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: APEI: Put the error record serialization table for error path

The mapped error record serialization table needs to be
released for error path of erst_init().

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Hanjun Guo and committed by
Rafael J. Wysocki
43f595dc 541156a3

+3 -1
+3 -1
drivers/acpi/apei/erst.c
··· 1122 1122 rc = erst_check_table(erst_tab); 1123 1123 if (rc) { 1124 1124 pr_err(FW_BUG "ERST table is invalid.\n"); 1125 - goto err; 1125 + goto err_put_erst_tab; 1126 1126 } 1127 1127 1128 1128 apei_resources_init(&erst_resources); ··· 1196 1196 apei_resources_release(&erst_resources); 1197 1197 err_fini: 1198 1198 apei_resources_fini(&erst_resources); 1199 + err_put_erst_tab: 1200 + acpi_put_table((struct acpi_table_header *)erst_tab); 1199 1201 err: 1200 1202 erst_disable = 1; 1201 1203 return rc;