summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2019-04-18 16:38:49 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-04-25 10:38:14 +0300
commit1a143cdde4af13e2f564410c5f2a1646f74daa43 (patch)
tree20293bd970ab03eadf30ec4ec93bdd7c7541da30 /drivers/crypto
parentc4b22bf51b815fb61a35a27fc847a88bc28ebb63 (diff)
downloadlinux-1a143cdde4af13e2f564410c5f2a1646f74daa43.tar.xz
crypto: ccree - fix typo in debugfs error path
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 <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/ccree/cc_debugfs.c2
1 files changed, 1 insertions, 1 deletions
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) {