From patchwork Wed Sep 13 07:32:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9950485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BB81B603F4 for ; Wed, 13 Sep 2017 07:32:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD9662872C for ; Wed, 13 Sep 2017 07:32:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A27F228BE3; Wed, 13 Sep 2017 07:32:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DAE92872C for ; Wed, 13 Sep 2017 07:32:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751867AbdIMHco (ORCPT ); Wed, 13 Sep 2017 03:32:44 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35365 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751712AbdIMHch (ORCPT ); Wed, 13 Sep 2017 03:32:37 -0400 Received: by mail-pg0-f67.google.com with SMTP id j16so4198026pga.2; Wed, 13 Sep 2017 00:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JMxGE1FSK7O8yLZGk9ns2hy7Q9YCIFlDz3v4c42u8PY=; b=IatJOa+ftkVRO8jrERzjpCEEKwd09s/kmx4cXM6YYPWLeyWQuTt26ug/eBmliwJ1qc Qk49WfcuHblKXqCXXd6B8232jFDaolgS521FcvDVfL7nNytFl3bzOUVcJi7UYjkmc8EM KjOsKjqBPJzJLHVxQGxAEnnOA1GNbLGvHRRA/f7sbZj2DgTqQT2LpZDrq5rtnut5CDfh 7B9NJl8t7w3U8acsUGaJXbNZu3fvvvXcwayYUG7u6hcyBsPnm3NVPAQPOKeRBxkcFqGv h7I88FPhUwTfiSTdPIa0cxFLxQhj0DtyNFu8p6Ih6RCs/mopLUKIFM5TUt7bcVmyR+bv qr/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JMxGE1FSK7O8yLZGk9ns2hy7Q9YCIFlDz3v4c42u8PY=; b=GBnba25xz+l2cG1qWu5XzqfwI+PKAQaTNaEHM2qt9BrtxLVgPToVC9XalCGzXBS0kj BZlZGKASqmR66EmN69RabNL+QKAt06utnfBV9NgsxaxHwdNFHvdYq3HCJCx5shXAfEd1 n8HtVkdJRf3kYBc3K+XDI1M1u+b1boDJwzoOBzpBL/fMCJmZfq7xx3u1WoIyqOfhbu0c hW5cqtAl7m4OF+yBUi8HbfRkXJ1/dOUzW4UVyHRAnbSlT4aFazHKF6jk+6BoUIVZ11QC tMZTqyuxRxhPNxJPPWPJlxw824CthOq1YKtfavEgF3lNlmnWuEVbl80h6ViDiyXM06Vv ypgg== X-Gm-Message-State: AHPjjUiXZWmf6yONVQoPMHxQQVYn19YDAOFQGyHyIScoV4M86xDmG3oj +P1isM+iU0PufWsi0GjS+w== X-Google-Smtp-Source: ADKCNb7dSkWaNvhqgLPSYmo2qEYnLD1LElEaZlJNRCGypRlEwkaFXKhS9BKMm18jDvYfHcZtlamVQQ== X-Received: by 10.98.201.197 with SMTP id l66mr17046577pfk.135.1505287956304; Wed, 13 Sep 2017 00:32:36 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u12sm17997328pfg.146.2017.09.13.00.32.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 00:32:35 -0700 (PDT) From: Allen Pais To: linux-kernel@vger.kernel.org Cc: nouveau@lists.freedesktop.org, linux-crypto@vger.kernel.org, dri-devel@lists.freedesktop.org, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, netdev@vger.kernel.org, megaraidlinux.pdl@broadcom.com, target-devel@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-btrfs@vger.kernel.org, Allen Pais Subject: [PATCH 02/10] drivers:crypto: return -ENOMEM on allocation failure. Date: Wed, 13 Sep 2017 13:02:11 +0530 Message-Id: <1505287939-14106-2-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505287939-14106-1-git-send-email-allen.lkml@gmail.com> References: <1505287939-14106-1-git-send-email-allen.lkml@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Allen Pais --- drivers/crypto/omap-aes-gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/omap-aes-gcm.c b/drivers/crypto/omap-aes-gcm.c index 7d4f8a4..2542224 100644 --- a/drivers/crypto/omap-aes-gcm.c +++ b/drivers/crypto/omap-aes-gcm.c @@ -186,7 +186,7 @@ static int do_encrypt_iv(struct aead_request *req, u32 *tag, u32 *iv) sk_req = skcipher_request_alloc(ctx->ctr, GFP_KERNEL); if (!sk_req) { pr_err("skcipher: Failed to allocate request\n"); - return -1; + return -ENOMEM; } init_completion(&result.completion);