summaryrefslogtreecommitdiff
path: root/crypto/algif_hash.c
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2017-03-07 00:22:51 -0700
committerJonathan Corbet <corbet@lwn.net>2017-03-07 00:22:51 -0700
commit07d045372921bfaa843ea00749c150b099ca0a49 (patch)
treef849e8432047d3e0fc04590ddfb6a76ba953f9b6 /crypto/algif_hash.c
parent1bd9a34ffdd5f22ef74ed68b5d8b6fb4b781d58c (diff)
parent4c6427919ee920d5963cf826de76292286342aa0 (diff)
downloadlinux-crypto-07d045372921bfaa843ea00749c150b099ca0a49.tar.gz
linux-crypto-07d045372921bfaa843ea00749c150b099ca0a49.zip
Merge tag 'v4.11-rc1' into docs-next
Linux 4.11-rc1
Diffstat (limited to '')
-rw-r--r--crypto/algif_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c
index d19b09cd..54fc90e8 100644
--- a/crypto/algif_hash.c
+++ b/crypto/algif_hash.c
@@ -245,7 +245,7 @@ static int hash_accept(struct socket *sock, struct socket *newsock, int flags)
struct alg_sock *ask = alg_sk(sk);
struct hash_ctx *ctx = ask->private;
struct ahash_request *req = &ctx->req;
- char state[crypto_ahash_statesize(crypto_ahash_reqtfm(req))];
+ char state[crypto_ahash_statesize(crypto_ahash_reqtfm(req)) ? : 1];
struct sock *sk2;
struct alg_sock *ask2;
struct hash_ctx *ctx2;