Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a143cdd authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Herbert Xu
Browse files

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: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c4b22bf5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {