aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorCyrille Pitchen <[email protected]>2016-02-08 16:26:49 +0100
committerHerbert Xu <[email protected]>2016-02-17 04:07:43 +0800
commitad84112a1135bda928806fcbb98680847ab81436 (patch)
treeb48ec319f8958b3ea67c01879bd8afb47071ba7c /lib/mpi/mpi-internal.h
parent9c4274d90d2923dda7435073de6494f0250ccb5a (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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions