Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2956443imu; Mon, 19 Nov 2018 08:35:54 -0800 (PST) X-Google-Smtp-Source: AJdET5eUvbgybJeLbE5Te4CAyURkRe4+u5Y06kIIaRU2C720T8AeUIoauccaMWum8Me8mBB72ARF X-Received: by 2002:a65:560e:: with SMTP id l14mr20792590pgs.168.1542645354520; Mon, 19 Nov 2018 08:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645354; cv=none; d=google.com; s=arc-20160816; b=fu8RgvrPkqyGAZ+fCa2xHxW2ufPaJxnKypTFQ0Tky1NiZXDVsFQSLXE97oSYRo9R0H PXCFbNhzd01VIap9m6sfVGqg80l5zG4lqBeyPk1USVewYjkCSiWwSi5rXhm45jwzn18T NEsRW557hM/DMVJjdKQYvFutjDUsp5ftsADTwGf8PRz1z9U/UArp2vFN5rcuMOn8UPtH t0Q3dDAvXvE0IMIV1q37wxvtaaDPldVy/y37RTrI9ahGzdhkWo5ZVh2cDn7QoidFO5JR V7YM89uUWm5dtFqIL/DS0oNOWllqiKaknd728nmePFcd7s153T9cB7bgeZdvepRX0eHZ SBGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ymuHYtIcg9+hrxeK/s4sDLP9rrvFpNV/ksfgWOmH/1M=; b=gUjP9eT+MVhBwSKZvLOuFggay3rvoiYj6oKA2NKOBUp9zmFjmhamCno3jkzNzRxLLA S66PwJFpGfPREzhHTTRyu/PmR222v4JKWP22xcUVatZAVyYUtn7hB5IY/aljiwCB9tYW JCY/N9Ijs+sEW/rvPuaKRvYS84W4WIutW5UbyienIW4ZEHOtWkCOhayEGOehR7cNuLca DVzp/WdyruDPVAXfj4YMRsEz1ElZOGJXYkTt1NUcHsH52uWNDLXR8Xy23k+fLbCYT2e5 1iG/Q9UCtkjfkXiQmEPRoqXml9w6SL47VZsfaFSE94+SnYfYkRIAFDESQip6P+8fQ/H6 RNwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n44RVWJV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si44834951plk.407.2018.11.19.08.35.33; Mon, 19 Nov 2018 08:35:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n44RVWJV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731330AbeKTC6T (ORCPT + 99 others); Mon, 19 Nov 2018 21:58:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:57346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729995AbeKTC6S (ORCPT ); Mon, 19 Nov 2018 21:58:18 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B0E821104; Mon, 19 Nov 2018 16:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645250; bh=Vdlx8izv4ocnXcY50CEFj+8t5KSGAmnGn0snHYEcXlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n44RVWJVec0aBwhHbvZG6zsm+RBppAncc7jBbNNSFUPClt5UlA9I2/YkBFY7z2muI xY0FA8fntABo0qIeGGA03EUPoaM60JMh8Wd/tAJw84qw5HmIy5Rt/rJwV95hwQt7W9 /oXj9x5MdQMkfc5IxFIFufJUn3jAjo/zrQaYAVWI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jacek Zloch , Dave Jiang , Dan Williams Subject: [PATCH 4.19 092/205] acpi, nfit: Fix ARS overflow continuation Date: Mon, 19 Nov 2018 17:26:39 +0100 Message-Id: <20181119162632.332651855@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Williams 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: Fixes: 1cf03c00e7c1 ("nfit: scrub and register regions in a workqueue") Reported-by: Jacek Zloch Reviewed-by: Dave Jiang Signed-off-by: Dan Williams Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/nfit/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -2845,9 +2845,9 @@ static int acpi_nfit_query_poison(struct return rc; if (ars_status_process_records(acpi_desc)) - return -ENOMEM; + dev_err(acpi_desc->dev, "Failed to process ARS records\n"); - return 0; + return rc; } static int ars_register(struct acpi_nfit_desc *acpi_desc,