acpi: Eliminate console msg if pstore.backend excludes ERST
authorLenny Szubowicz <lszubowi@redhat.com>
Fri, 28 Jun 2013 20:14:10 +0000 (16:14 -0400)
committerTony Luck <tony.luck@intel.com>
Fri, 28 Jun 2013 22:22:31 +0000 (15:22 -0700)
commit74fd6c6f84b6d3e57bacb06161451c29949fbe51
treeaa4eb66b5b89aca1db19d9c42570c99ee35891c2
parent8e48b1a8ed58595c40f2748c0f2da55b04da2dd6
acpi: Eliminate console msg if pstore.backend excludes ERST

This is patch 2/3 of a patch set that avoids what misleadingly appears
to be a error during boot:

ERST: Could not register with persistent store

This message is displayed if the system has a valid ACPI ERST table and the
pstore.backend kernel parameter has been used to disable use of ERST by
pstore. But this same message is used for errors that preclude registration.

In erst_init don't complain if the setting of kernel parameter pstore.backend
precludes use of ACPI ERST for pstore. Routine pstore_register will inform
about the facility that does register.

Also, don't leave a dangling pointer to deallocated mem for the pstore
buffer when registration fails.

Signed-off-by: Lenny Szubowicz <lszubowi@redhat.com>
Reported-by: Naotaka Hamaguchi <n.hamaguchi@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
drivers/acpi/apei/erst.c
This page took 0.02522 seconds and 5 git commands to generate.