]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / APEI: Fix the returned value in erst_dbg_read
authorAdrian Huang <adrian.huang@hp.com>
Fri, 14 Dec 2012 23:30:07 +0000 (00:30 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jan 2013 12:10:20 +0000 (13:10 +0100)
commit69e5361cf41622df039138d36cd5434c9996694b
treeaacc6936e42d2cd73a98439987c3b7efa361eed4
parent3488c69bfc958da74cc1a2ebc3b69a93c80b12aa
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>
drivers/acpi/apei/erst-dbg.c