commit | 6780aa683d4d83ed887dd07b7987947d339d76f1 | [log] [tgz] |
---|---|---|
author | Adrian Huang <adrian.huang@hp.com> | Sat Dec 15 00:30:07 2012 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Jan 03 13:10:20 2013 +0100 |
tree | aacc6936e42d2cd73a98439987c3b7efa361eed4 | |
parent | d1c3ed669a2d452cacfb48c2d171a1f364dae2ed [diff] |
ACPI / APEI: Fix the returned value in erst_dbg_read If the persistent store is empty initially, the function 'erst_dbg_read' returns a nonzero value. The better way is to return a zero indicating the read operation reaches EOF. Tested on two different servers. Signed-off-by: Adrian Huang <adrian.huang@hp.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>