Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1466910

[PATCH] lib/digsig: remove redundant clean out1 when verifying RSA

From Shawn Lin <shawn.lin@rock-chips.com>
Newsgroups linux.kernel
Subject [PATCH] lib/digsig: remove redundant clean out1 when verifying RSA
Date 2016-08-21 05:20 +0200
Message-ID <s8rsJ-3lL-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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@rock-chips.com>
---

 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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] lib/digsig: remove redundant clean out1 when verifying RSA Shawn Lin <shawn.lin@rock-chips.com> - 2016-08-21 05:20 +0200

csiph-web