Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gilad Ben-Yossef and committed by
Herbert Xu
1a143cdd c4b22bf5

+1 -1
+1 -1
drivers/crypto/ccree/cc_debugfs.c
··· 89 89 90 90 verset = devm_kzalloc(dev, sizeof(*verset), GFP_KERNEL); 91 91 /* Failing here is not important enough to fail the module load */ 92 - if (!regset) 92 + if (!verset) 93 93 goto out; 94 94 95 95 if (drvdata->hw_rev <= CC_HW_REV_712) {