commit | 92fc15915244e2c57574515cbdc06bb827b9693c | [log] [tgz] |
---|---|---|
author | Sandeep Patil <sspatil@android.com> | Thu Mar 28 13:52:03 2019 +0900 |
committer | Alistair Strachan <astrachan@google.com> | Thu Mar 28 21:13:03 2019 -0700 |
tree | 504cfb858a52adb51b6af556bc459060213cbd88 | |
parent | 72cabd41ebfa8e37e1322ad214d3a8f97b75ef2d [diff] |
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: Sandeep Patil <sspatil@android.com>