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>
This commit is contained in:
Gilad Ben-Yossef 2019-04-18 16:38:49 +03:00 committed by Herbert Xu
parent c4b22bf51b
commit 1a143cdde4
1 changed files with 1 additions and 1 deletions

View File

@ -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) {