summaryrefslogtreecommitdiffstats
path: root/arch/arm64/crypto/sha1-ce-glue.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-06-05 22:25:01 +0200
committerThomas Gleixner <tglx@linutronix.de>2015-06-05 22:25:01 +0200
commit9f61f62544747db5d5c590bfae9dd19f1337e421 (patch)
tree74772cccd14e7ab6d01a3452d4030cd7f8e58ccb /arch/arm64/crypto/sha1-ce-glue.c
parentgenirq: Set IRQCHIP_SKIP_SET_WAKE for no_irq_chip (diff)
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sag... (diff)
downloadlinux-9f61f62544747db5d5c590bfae9dd19f1337e421.tar.xz
linux-9f61f62544747db5d5c590bfae9dd19f1337e421.zip
Merge branch 'linus' into irq/core
Get the urgent fixes from upstream to avoid conflicts.
Diffstat (limited to 'arch/arm64/crypto/sha1-ce-glue.c')
-rw-r--r--arch/arm64/crypto/sha1-ce-glue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/crypto/sha1-ce-glue.c b/arch/arm64/crypto/sha1-ce-glue.c
index 114e7cc5de8c..aefda9868627 100644
--- a/arch/arm64/crypto/sha1-ce-glue.c
+++ b/arch/arm64/crypto/sha1-ce-glue.c
@@ -74,6 +74,9 @@ static int sha1_ce_finup(struct shash_desc *desc, const u8 *data,
static int sha1_ce_final(struct shash_desc *desc, u8 *out)
{
+ struct sha1_ce_state *sctx = shash_desc_ctx(desc);
+
+ sctx->finalize = 0;
kernel_neon_begin_partial(16);
sha1_base_do_finalize(desc, (sha1_block_fn *)sha1_ce_transform);
kernel_neon_end();