mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 08:45:26 -05:00
Merge tag 'v6.15-p3' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fix from Herbert Xu: "This fixes a race condition in the newly added eip93 driver" * tag 'v6.15-p3' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: inside-secure/eip93 - acquire lock on eip93_put_descriptor hash
This commit is contained in:
@@ -260,7 +260,8 @@ static int eip93_send_hash_req(struct crypto_async_request *async, u8 *data,
|
||||
}
|
||||
|
||||
again:
|
||||
ret = eip93_put_descriptor(eip93, &cdesc);
|
||||
scoped_guard(spinlock_irqsave, &eip93->ring->write_lock)
|
||||
ret = eip93_put_descriptor(eip93, &cdesc);
|
||||
if (ret) {
|
||||
usleep_range(EIP93_RING_BUSY_DELAY,
|
||||
EIP93_RING_BUSY_DELAY * 2);
|
||||
|
||||
Reference in New Issue
Block a user