OSDN Git Service

crypto: atmel-aes - Reestablish the correct tfm context at dequeue
authorTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 27 Oct 2021 13:30:01 +0000 (16:30 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 20 Nov 2021 04:02:07 +0000 (15:02 +1100)
commit6d48de655917a9d782953eba65de4e3db593ddf0
tree3017a7d91f6495d041284491fb9c1c032bb3e9c1
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
crypto: atmel-aes - Reestablish the correct tfm context at dequeue

In case there were more requests from different tfms in the crypto
queue, only the context of the last initialized tfm was considered.

Fixes: ec2088b66f7a ("crypto: atmel-aes - Allocate aes dev at tfm init time")
Reported-by: Wolfgang Ocker <weo@reccoware.de>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c