diff options
author | Cyrille Pitchen <cyrille.pitchen@atmel.com> | 2016-02-08 16:26:49 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-02-17 04:07:43 +0800 |
commit | ad84112a1135bda928806fcbb98680847ab81436 (patch) | |
tree | b48ec319f8958b3ea67c01879bd8afb47071ba7c /drivers/pnp | |
parent | 9c4274d90d2923dda7435073de6494f0250ccb5a (diff) |
crypto: atmel-sha - fix race in atmel_sha_final()
When (!ctx->bufcnt && !(ctx->flags & SHA_FLAGS_PAD)), the former source
code used to set the SHA_FLAGS_BUSY without checking whether this flag was
already set. If so, the hardware is already processing another hash
request so the processing of the req argument of atmel_sha_final() should
be delayed by queueing this request, the same way as done for the
(ctx->bufcnt != 0) case.
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions