]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit6780aa683d4d83ed887dd07b7987947d339d76f1
treeaacc6936e42d2cd73a98439987c3b7efa361eed4
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed
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