Commit 9cf79284 authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent edc8e80b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ static int padlock_sha1_finup(struct shash_desc *desc, const u8 *in,

static int padlock_sha1_final(struct shash_desc *desc, u8 *out)
{
	u8 buf[4];
	const u8 *buf = (void *)desc;

	return padlock_sha1_finup(desc, buf, 0, out);
}
@@ -186,7 +186,7 @@ static int padlock_sha256_finup(struct shash_desc *desc, const u8 *in,

static int padlock_sha256_final(struct shash_desc *desc, u8 *out)
{
	u8 buf[4];
	const u8 *buf = (void *)desc;

	return padlock_sha256_finup(desc, buf, 0, out);
}