From patchwork Sun Jul 2 14:41:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 106852 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp8293991obb; Sun, 2 Jul 2017 07:45:38 -0700 (PDT) X-Received: by 10.98.69.219 with SMTP id n88mr5436085pfi.192.1499006738866; Sun, 02 Jul 2017 07:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499006738; cv=none; d=google.com; s=arc-20160816; b=ylOaUxNrWdcYKD04znsP2vlCek7xQBsf3bbMnaWkBH7ORRJ+fSf236dCpjN2hQ/mLe hOcgzhq4DN0B8kBifvlI0YYMN4ODCaqLpp8+eY6ryiAfNj96dEq+kRU7Gf7tcgFXfuql G9lQgyRY50R+D35Y2KIDEaMjKOwAdBu0oSiTJEz92/I2kMxTwXFt1msVqd6ISIdyb7c5 YAanqCIt3pNmMJkgH2bJYBzKGM+vw2J+DTuZ8vwE5iz5ji4na8l7dDo+aebvbfVPecry JPW5qmaTAENEGCwCZRcZ/ublH+aIqJZEPY6M7HLvQfeutrFHG48/PUnF3GsMZWOUhGz0 zf2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=KXKopzAbFVkafc0ewV0eh9vcAEbwuOiOW9EHlvGwon0=; b=komKp2HTI7UCwil+8xFjL5KvjCgZyFW03D+RQ3AjYaN2vSRsMgq6I6ZPRtp4d92DYu ttyoOvAH5MgNXvE5EAThtCvBtjzly5xtkOSPyfjs+e/SrF5HxNfB1bdbr2J4unXHI3Fz jI3wu60+cwh2CyPh8zPcqwNzVTIBSIAswca7WS16krlxjdCPIgAKSuegv+bisGK20LeB zdJVH9mt1w+lESkzYsA8JDDrtz0uxyR+LR6mjenm9H6p35GHAVUMTcVHGujIJ/noAm/W EdnBcTiI9wREIUtU5bwgm+R1tVxKGBP1yvVUEkmmi5zBaakGXwQF1ovxYoGPfJr8t1oH tAxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 p22si11118323pli.557.2017.07.02.07.45.38; Sun, 02 Jul 2017 07:45:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751806AbdGBOpR (ORCPT + 1 other); Sun, 2 Jul 2017 10:45:17 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54008 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752228AbdGBOpN (ORCPT ); Sun, 2 Jul 2017 10:45:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 72F4F344; Sun, 2 Jul 2017 07:45:07 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 998D13F578; Sun, 2 Jul 2017 07:44:59 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" , Jonathan Corbet , David Howells , Tom Lendacky , Gary Hook , Boris Brezillon , Arnaud Ebalard , Matthias Brugger , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Shaohua Li , Steve French , "Theodore Y. Ts'o" , Jaegeuk Kim , Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-raid@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-fscrypt@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, linux-ima-user@lists.sourceforge.net, linux-security-module@vger.kernel.org Cc: Ofir Drang Subject: [PATCH v3 12/28] ima: use -EIOCBQUEUED for backlog indication Date: Sun, 2 Jul 2017 17:41:54 +0300 Message-Id: <1499006535-19760-13-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499006535-19760-1-git-send-email-gilad@benyossef.com> References: <1499006535-19760-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Replace -EBUSY with -EIOCBQUEUED for backlog queueing indication as part of new API. Signed-off-by: Gilad Ben-Yossef --- This patch should be squashed with the first patch in the series when applied. security/integrity/ima/ima_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 diff --git a/security/integrity/ima/ima_crypto.c b/security/integrity/ima/ima_crypto.c index 802d5d2..226dd88 100644 --- a/security/integrity/ima/ima_crypto.c +++ b/security/integrity/ima/ima_crypto.c @@ -212,7 +212,7 @@ static int ahash_wait(int err, struct ahash_completion *res) case 0: break; case -EINPROGRESS: - case -EBUSY: + case -EIOCBQUEUED: wait_for_completion(&res->completion); reinit_completion(&res->completion); err = res->err;