| From: Liao Yuanhong <liaoyuanhong@vivo.com> |
| Subject: lib/digsig: remove unnecessary memset |
| Date: Mon, 11 Aug 2025 16:27:38 +0800 |
| |
| kzalloc() has already been initialized to full 0 space, there is no need |
| to use memset() to initialize again. |
| |
| Link: https://lkml.kernel.org/r/20250811082739.378284-1-liaoyuanhong@vivo.com |
| Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| lib/digsig.c | 1 - |
| 1 file changed, 1 deletion(-) |
| |
| --- a/lib/digsig.c~lib-digsig-remove-unnecessary-memset |
| +++ a/lib/digsig.c |
| @@ -159,7 +159,6 @@ static int digsig_verify_rsa(struct key |
| |
| len = mlen; |
| head = len - l; |
| - memset(out1, 0, head); |
| memcpy(out1 + head, p, l); |
| |
| kfree(p); |
| _ |