mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue