提交 3d995f88 编写于 作者: H Hanjun Guo 提交者: Rafael J. Wysocki

ACPI: APEI: Put the boot error record table after parsing

The mapped boot error record table is not used after
bert_init(), release it.
Signed-off-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 fe4e1a57
...@@ -119,7 +119,7 @@ static int __init bert_init(void) ...@@ -119,7 +119,7 @@ static int __init bert_init(void)
rc = bert_check_table(bert_tab); rc = bert_check_table(bert_tab);
if (rc) { if (rc) {
pr_err(FW_BUG "table invalid.\n"); pr_err(FW_BUG "table invalid.\n");
return rc; goto out_put_bert_tab;
} }
region_len = bert_tab->region_length; region_len = bert_tab->region_length;
...@@ -127,7 +127,7 @@ static int __init bert_init(void) ...@@ -127,7 +127,7 @@ static int __init bert_init(void)
rc = apei_resources_add(&bert_resources, bert_tab->address, rc = apei_resources_add(&bert_resources, bert_tab->address,
region_len, true); region_len, true);
if (rc) if (rc)
return rc; goto out_put_bert_tab;
rc = apei_resources_request(&bert_resources, "APEI BERT"); rc = apei_resources_request(&bert_resources, "APEI BERT");
if (rc) if (rc)
goto out_fini; goto out_fini;
...@@ -142,6 +142,8 @@ static int __init bert_init(void) ...@@ -142,6 +142,8 @@ static int __init bert_init(void)
apei_resources_release(&bert_resources); apei_resources_release(&bert_resources);
out_fini: out_fini:
apei_resources_fini(&bert_resources); apei_resources_fini(&bert_resources);
out_put_bert_tab:
acpi_put_table((struct acpi_table_header *)bert_tab);
return rc; return rc;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册