Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f04e4b12 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "crypto: msm: qcrypto: Fix hash crash if not last issue"

parents 71d3021d 09ad8ed7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Qualcomm Crypto driver
 *
 * Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1605,6 +1605,7 @@ static void _qce_ahash_complete(void *cookie, unsigned char *digest,
#endif
	if (digest) {
		memcpy(rctx->digest, digest, diglen);
		if (rctx->last_blk)
			memcpy(areq->result, digest, diglen);
	}
	if (authdata) {