diff options
| author | Dave Airlie <airlied@redhat.com> | 2017-10-03 09:35:04 +1000 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2017-10-03 09:35:04 +1000 |
| commit | ebec44a2456fbe5fe18aae88f6010f6878f0cb4a (patch) | |
| tree | 427734722bdf3e807333329f33a6dbd6e95ec747 /drivers/acpi | |
| parent | 659333de48268550b5f09fcd45f76459d737b946 (diff) | |
| parent | 9e66317d3c92ddaab330c125dfe9d06eee268aff (diff) | |
| download | talos-op-linux-ebec44a2456fbe5fe18aae88f6010f6878f0cb4a.tar.gz talos-op-linux-ebec44a2456fbe5fe18aae88f6010f6878f0cb4a.zip | |
BackMerge tag 'v4.14-rc3' into drm-next
Linux 4.14-rc3
Requested by Daniel for the tracing build fix in fixes.
Diffstat (limited to 'drivers/acpi')
| -rw-r--r-- | drivers/acpi/apei/ghes.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 077f9bad6f44..3c3a37b8503b 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -743,17 +743,19 @@ static int ghes_proc(struct ghes *ghes) } ghes_do_proc(ghes, ghes->estatus); +out: + ghes_clear_estatus(ghes); + + if (rc == -ENOENT) + return rc; + /* * GHESv2 type HEST entries introduce support for error acknowledgment, * so only acknowledge the error if this support is present. */ - if (is_hest_type_generic_v2(ghes)) { - rc = ghes_ack_error(ghes->generic_v2); - if (rc) - return rc; - } -out: - ghes_clear_estatus(ghes); + if (is_hest_type_generic_v2(ghes)) + return ghes_ack_error(ghes->generic_v2); + return rc; } |

