projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b22bf
)
crypto: ccree - fix typo in debugfs error path
author
Gilad Ben-Yossef
<gilad@benyossef.com>
Thu, 18 Apr 2019 13:38:49 +0000
(16:38 +0300)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 25 Apr 2019 07:38:14 +0000
(15:38 +0800)
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>
drivers/crypto/ccree/cc_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/ccree/cc_debugfs.c
b/drivers/crypto/ccree/cc_debugfs.c
index 989dd624f1359e72c05bea2d5d0254c5d11b86d7..56699973869880558164f400d1501a00639ab33b 100644
(file)
--- 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 (!
reg
set)
+ if (!
ver
set)
goto out;
if (drvdata->hw_rev <= CC_HW_REV_712) {