]> git.baikalelectronics.ru Git - kernel.git/commit
acpi, nfit: Fix ARS overflow continuation
authorDan Williams <dan.j.williams@intel.com>
Thu, 1 Nov 2018 07:30:22 +0000 (00:30 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 10 Nov 2018 17:54:28 +0000 (09:54 -0800)
commitba9d2a34a7ac969b0b718b1ed458045e90771466
treec0a767a87f0d5285438680d2a88496f339768c68
parente94bbd58a9c14f2e09dddc0e4631133b43eddda6
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: 769935d88caa ("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>
drivers/acpi/nfit/core.c