[PATCH] lib/digsig: remove redundant clean out1 when verifying RSA
From: Shawn Lin
Date: Sat Aug 20 2016 - 23:17:43 EST
out1 is already set to zero when allocating by kzalloc, so
we could avoid this clean operation again.
Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>
---
lib/digsig.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/digsig.c b/lib/digsig.c
index 55b8b2f..d6a2aa4 100644
--- a/lib/digsig.c
+++ b/lib/digsig.c
@@ -156,7 +156,6 @@ static int digsig_verify_rsa(struct key *key,
len = mlen;
head = len - l;
- memset(out1, 0, head);
memcpy(out1 + head, p, l);
kfree(p);
--
2.3.7