Skip to content

Commit 3fa58dc

Browse files
committed
acpi, nfit: Fix ARS overflow continuation
When the platform BIOS is unable to report all the media error records it requires the OS to restart the scrub at a prescribed location. The driver detects the overflow condition, but then fails to report it to the ARS state machine after reaping the records. Propagate -ENOSPC correctly to continue the ARS operation. Cc: <stable@vger.kernel.org> Fixes: 1cf03c0 ("nfit: scrub and register regions in a workqueue") Reported-by: Jacek Zloch <jacek.zloch@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent af31b04 commit 3fa58dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/nfit/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2928,9 +2928,9 @@ static int acpi_nfit_query_poison(struct acpi_nfit_desc *acpi_desc)
29282928
return rc;
29292929

29302930
if (ars_status_process_records(acpi_desc))
2931-
return -ENOMEM;
2931+
dev_err(acpi_desc->dev, "Failed to process ARS records\n");
29322932

2933-
return 0;
2933+
return rc;
29342934
}
29352935

29362936
static int ars_register(struct acpi_nfit_desc *acpi_desc,

0 commit comments

Comments
 (0)