projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04a4616
)
crypto: omap-des - avoid unnecessary spam with bad cryptlen
author
Tero Kristo
<t-kristo@ti.com>
Tue, 5 Nov 2019 14:01:09 +0000
(16:01 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:37:00 +0000
(16:37 +0800)
Remove the error print in this case, and just return the error.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-des.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/omap-des.c
b/drivers/crypto/omap-des.c
index 2e3ecb860e27544a1521f08e4baa5544e39c05b9..31fc9300b990fa9792d9e4b5fe6a1f80df07e6a2 100644
(file)
--- a/
drivers/crypto/omap-des.c
+++ b/
drivers/crypto/omap-des.c
@@
-637,10
+637,8
@@
static int omap_des_crypt(struct skcipher_request *req, unsigned long mode)
!!(mode & FLAGS_ENCRYPT),
!!(mode & FLAGS_CBC));
- if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE)) {
- pr_err("request size is not exact amount of DES blocks\n");
+ if (!IS_ALIGNED(req->cryptlen, DES_BLOCK_SIZE))
return -EINVAL;
- }
dd = omap_des_find_dev(ctx);
if (!dd)