aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorCyrille Pitchen <[email protected]>2016-02-08 15:26:49 +0000
committerHerbert Xu <[email protected]>2016-02-16 20:07:43 +0000
commitad84112a1135bda928806fcbb98680847ab81436 (patch)
treeb48ec319f8958b3ea67c01879bd8afb47071ba7c /lib/mpi/mpi-inline.h
parentcrypto: atmel-sha - fix .import()/.export() implementation (diff)
downloadkernel-ad84112a1135bda928806fcbb98680847ab81436.tar.gz
kernel-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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions