diff options
author | 2016-02-08 16:26:49 +0100 | |
---|---|---|
committer | 2016-02-17 04:07:43 +0800 | |
commit | ad84112a1135bda928806fcbb98680847ab81436 (patch) | |
tree | b48ec319f8958b3ea67c01879bd8afb47071ba7c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | crypto: atmel-sha - fix .import()/.export() implementation (diff) | |
download | linux-dev-ad84112a1135bda928806fcbb98680847ab81436.tar.xz linux-dev-ad84112a1135bda928806fcbb98680847ab81436.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions