ACPI, APEI, Fix error path for memory allocation
authorHuang Ying <ying.huang@intel.com>
Wed, 29 Sep 2010 11:53:54 +0000 (19:53 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 29 Sep 2010 18:02:35 +0000 (14:02 -0400)
commit23f124ca3dda98496b7ccf897cfd66264a212b6c
tree7b60b3de8e5fb0ee000eb97ea0abba1b25b868c6
parent1dd6b20e368765223c31569d364219785b24700b
ACPI, APEI, Fix error path for memory allocation

In ERST debug/test support patch, a dynamic allocated buffer is
used. The may-failed memory allocation should be tried firstly before
free the previous buffer.

APEI resource management memory allocation related error path is fixed
too.

v2:

- Fix error messages for APEI resources management

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/apei/apei-base.c
drivers/acpi/apei/erst-dbg.c