Skip to content

Commit 806487a

Browse files
punitagrawalrafaeljw
authored andcommitted
ACPI / APEI: Fix incorrect return value of ghes_proc()
Although ghes_proc() tests for errors while reading the error status, it always return success (0). Fix this by propagating the return value. Fixes: d334a49 (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>
1 parent 07d9a38 commit 806487a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/apei/ghes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ static int ghes_proc(struct ghes *ghes)
662662
ghes_do_proc(ghes, ghes->estatus);
663663
out:
664664
ghes_clear_estatus(ghes);
665-
return 0;
665+
return rc;
666666
}
667667

668668
static void ghes_add_timer(struct ghes *ghes)

0 commit comments

Comments
 (0)