From patchwork Thu Apr 18 13:38:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 162483 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp761622jan; Thu, 18 Apr 2019 06:41:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHyZoT0hqkmDKvfm48nVMpKyul/74w03o7YwKYK76L4EacWoJ3cUbQlNv6YK1ZK7wtp4jc X-Received: by 2002:a63:195f:: with SMTP id 31mr89260082pgz.116.1555594866809; Thu, 18 Apr 2019 06:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594866; cv=none; d=google.com; s=arc-20160816; b=aWaZRJVcVrWeLutUAcy6wtkgRBo7GxKdnzSrUzPkGsnFr05YsAI7I/SU1j39QXrOiq amV1Dip5JHbSlgPk+7ORsShiWJ/zzdACU0RRGoRK8XzzNJZSOssWiIvrJuldgmnq/bOq 2Z+RscoDlw8ih6qRK1IkKJdbGQZM6QN6ruVLtN/3jQ4zfOKEzjNacauJfk+HZdTkmC0X EqiF0j1ZQWfpbPOLf+sbcjv9ES40eMR8eAZDX2bPzJcfX0qcmZwxDiQz1j6mqTwQqv3L pRaAitYB0HzXj0BDGfkZpZ94TH3oY1P8EP9yGnwFbOAXdOmsE4q4yjSym+ks1npH9BPI wJew== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=91umJ6OiFpCUmr7YZ+VyJwQEhoR7WSDTB9l6Vs6eVC8=; b=qYkdCB37TQXDnzhNmdtq7FnKM1XE22KnS4u5LafVNJLtU+gN2uHwNliMHPJJpL+T0z eUbdE/ct2f5VkY7wInelywHoNzq4KxWkkdUhHWn/7zzlZQjut+EL4LAG0rZcLGuMFror o+DlSb54zwq4qJtOMDD+LoyPyDUv8AETGkW0a1bpp2hqHfF+Z9bEKrQ8lTlJpLE6H9FR oerqlx5cPcxDmbhM4OV7qCeU/T8LO3ml2P+XPSO8fQuCIBVJkw785Z7tyShcYV/Ozakm dwWVyNdCgMGfDAy5T2cobaG2AqsaLQjucJ5DpmlO7E1K7JBgWX0wUAWhoRC8dQscly2g NhTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 z143si2486889pfc.64.2019.04.18.06.41.06; Thu, 18 Apr 2019 06:41:06 -0700 (PDT) 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; 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 S2389349AbfDRNkn (ORCPT + 30 others); Thu, 18 Apr 2019 09:40:43 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33596 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389132AbfDRNkm (ORCPT ); Thu, 18 Apr 2019 09:40:42 -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 1DBE480D; Thu, 18 Apr 2019 06:40:42 -0700 (PDT) Received: from e110176-lin.kfn.arm.com (e110176-lin.kfn.arm.com [10.50.4.178]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A35F53F5AF; Thu, 18 Apr 2019 06:40:40 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/35] crypto: ccree: fix typo in debugfs error path Date: Thu, 18 Apr 2019 16:38:49 +0300 Message-Id: <20190418133913.9122-15-gilad@benyossef.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418133913.9122-1-gilad@benyossef.com> References: <20190418133913.9122-1-gilad@benyossef.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a typo in debugfs interface error path which can result in a panic following a memory allocation failure. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/cc_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/drivers/crypto/ccree/cc_debugfs.c b/drivers/crypto/ccree/cc_debugfs.c index 989dd624f135..566999738698 100644 --- a/drivers/crypto/ccree/cc_debugfs.c +++ b/drivers/crypto/ccree/cc_debugfs.c @@ -89,7 +89,7 @@ int cc_debugfs_init(struct cc_drvdata *drvdata) verset = devm_kzalloc(dev, sizeof(*verset), GFP_KERNEL); /* Failing here is not important enough to fail the module load */ - if (!regset) + if (!verset) goto out; if (drvdata->hw_rev <= CC_HW_REV_712) {