Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92fc1591 authored by Sandeep Patil's avatar Sandeep Patil Committed by Alistair Strachan
Browse files

ANDROID: Fix race in crng_reseed()



The crng_init triggers process_crng_rdy_callbacks() and those callbacks
can call into the crng again. So, leave the spinlock before processing
the callbacks.

This is a version of upstream commit '4a072c71f49b'

Bug: 124090075
Test: Build and boot cuttlefish with hwrng enabled

Change-Id: Ie5b7a60cd17eae80ca26b518c60110fd18efd548
Signed-off-by: default avatarSandeep Patil <sspatil@android.com>
parent 72cabd41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment