]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:14 +0000 (11:03 +0100)
commitcb353b68846439e12e79f79d1fb7810a9644c1a0
tree7167a02fd26c3fabd3d3919f60ac0b52ceb73201
parent4d6a558bde10896f2041e0aa5b3b7eca78b1834c
crypto: atmel-aes - Reestablish the correct tfm context at dequeue

[ Upstream commit 6d48de655917a9d782953eba65de4e3db593ddf0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/atmel-aes.c