From: Gilad Ben-Yossef Date: Thu, 18 Apr 2019 13:38:49 +0000 (+0300) Subject: crypto: ccree - fix typo in debugfs error path X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1a143cdde4af13e2f564410c5f2a1646f74daa43;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ccree/cc_debugfs.c b/drivers/crypto/ccree/cc_debugfs.c index 989dd624f135..566999738698 100644 --- a/drivers/crypto/ccree/cc_debugfs.c +++ b/drivers/crypto/ccree/cc_debugfs.c @@ -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) {