Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: padlock - Use zero page instead of stack buffer

Use desc instead of a stack buffer in the final function. This
fixes a compiler warning about buf being uninitialised.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+2 -2
+2 -2
drivers/crypto/padlock-sha.c
··· 125 125 126 126 static int padlock_sha1_final(struct shash_desc *desc, u8 *out) 127 127 { 128 - u8 buf[4]; 128 + const u8 *buf = (void *)desc; 129 129 130 130 return padlock_sha1_finup(desc, buf, 0, out); 131 131 } ··· 186 186 187 187 static int padlock_sha256_final(struct shash_desc *desc, u8 *out) 188 188 { 189 - u8 buf[4]; 189 + const u8 *buf = (void *)desc; 190 190 191 191 return padlock_sha256_finup(desc, buf, 0, out); 192 192 }