ACPI / APEI: Fix incorrect return value of ghes_proc()
authorPunit Agrawal <punit.agrawal@arm.com>
Tue, 18 Oct 2016 16:07:19 +0000 (17:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Feb 2017 10:04:05 +0000 (11:04 +0100)
commitbdb29c7b5260e76d5519d9fae0cfd6136c738821
tree8264753b33eec2a4c669b8fb31fb1ab88b6f5a72
parent2ef72292774600e4b4e1b1dbddf8cba971c9efb3
ACPI / APEI: Fix incorrect return value of ghes_proc()

commit 806487a8fc8f385af75ed261e9ab658fc845e633 upstream.

Although ghes_proc() tests for errors while reading the error status,
it always return success (0). Fix this by propagating the return
value.

Fixes: d334a49113a4a33 (ACPI, APEI, Generic Hardware Error Source memory error support)
Signed-of-by: Punit Agrawal <punit.agrawa.@arm.com>
Tested-by: Tyler Baicar <tbaicar@codeaurora.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/acpi/apei/ghes.c