diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2019-04-18 09:38:49 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-04-25 03:38:14 -0400 |
commit | 1a143cdde4af13e2f564410c5f2a1646f74daa43 (patch) | |
tree | 20293bd970ab03eadf30ec4ec93bdd7c7541da30 | |
parent | c4b22bf51b815fb61a35a27fc847a88bc28ebb63 (diff) |
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>
-rw-r--r-- | drivers/crypto/ccree/cc_debugfs.c | 2 |
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) | |||
89 | 89 | ||
90 | verset = devm_kzalloc(dev, sizeof(*verset), GFP_KERNEL); | 90 | verset = devm_kzalloc(dev, sizeof(*verset), GFP_KERNEL); |
91 | /* Failing here is not important enough to fail the module load */ | 91 | /* Failing here is not important enough to fail the module load */ |
92 | if (!regset) | 92 | if (!verset) |
93 | goto out; | 93 | goto out; |
94 | 94 | ||
95 | if (drvdata->hw_rev <= CC_HW_REV_712) { | 95 | if (drvdata->hw_rev <= CC_HW_REV_712) { |