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:
parent
c4b22bf51b
commit
1a143cdde4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user