]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:22:04 +0000 (09:22 +0100)
commit84d1d9cc1c0c61a8b8d254c23e31a91fbbb40698
treee9f4bd19a4e369e5274ce1ebd8ee4aae33b2909a
parent13bb0de8e25c9f2fa846ee92c1f8a736a54423aa
acpi, nfit: Fix ARS overflow continuation

commit 3fa58dcab50a0aa16817f16a8d38aee869eb3fb9 upstream.

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: 1cf03c00e7c1 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/nfit/core.c