Commit 0472b28b authored by Punit Agrawal's avatar Punit Agrawal Committed by Ben Hutchings

ACPI / APEI: Fix incorrect return value of ghes_proc()

commit 806487a8 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: d334a491 (ACPI, APEI, Generic Hardware Error Source memory error support)
Signed-of-by: default avatarPunit Agrawal <punit.agrawa.@arm.com>
Tested-by: default avatarTyler Baicar <tbaicar@codeaurora.org>
Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
[ rjw: Subject ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 95e68768
...@@ -679,7 +679,7 @@ static int ghes_proc(struct ghes *ghes) ...@@ -679,7 +679,7 @@ static int ghes_proc(struct ghes *ghes)
ghes_do_proc(ghes, ghes->estatus); ghes_do_proc(ghes, ghes->estatus);
out: out:
ghes_clear_estatus(ghes); ghes_clear_estatus(ghes);
return 0; return rc;
} }
static void ghes_add_timer(struct ghes *ghes) static void ghes_add_timer(struct ghes *ghes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment