Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp604232yba; Thu, 18 Apr 2019 06:42:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMxAVuvvrBKFss6AviDsDLL2RpVEQvHp9t9xPGthFhLC/Uk4LPiIuxVPl1XX1vC9XEz3mR X-Received: by 2002:a63:3dc8:: with SMTP id k191mr88293071pga.286.1555594941323; Thu, 18 Apr 2019 06:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594941; cv=none; d=google.com; s=arc-20160816; b=HmZFM614Fd4Z+we8dCg8w9nREF4Y1OQLYx3932XWuBqz/1IJFMCnQpz70jwlUNR5Dn XljiKxQv/PIcE8yNBE+Z8hJeMn0x1r/QUKAfw2woYA+Ztn6f3vUFGE5lxivYc0b0G+5V h3DOtzD/ir1P5I7DD+i0t9nItheQoqRUdqMpOZjKcUYZV7EyCfJF53std/bh6VIqdRzo dfm2N1jBj5yKeUCXP1rB0gMVQE/6XpFnD3HwEN1rc7LHJq0vJ+A31+Zki4JEcJ795Wyo We5uCO01lfGNfDuosesMbmXVH4VHYxTvZp8INJxDMF9xp6T5F94z+19paNuHBOS1rVQD uAwA== 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 u1si2106813pls.43.2019.04.18.06.42.05; Thu, 18 Apr 2019 06:42:21 -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 S2389114AbfDRNkn (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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(-) 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) { -- 2.21.0