[Bugfix][T800][API-365]During the abnormal period of the netstat -an command prompt, the wifi service SOCKET communication is abnormal
Change-Id: I371d017e4ac31dfea17bee7667837f456018fbf7
diff --git a/src/kernel/linux/v4.19/drivers/char/random.c b/src/kernel/linux/v4.19/drivers/char/random.c
index af6e240..9f677b5 100644
--- a/src/kernel/linux/v4.19/drivers/char/random.c
+++ b/src/kernel/linux/v4.19/drivers/char/random.c
@@ -1267,9 +1267,12 @@
return;
}
+//modify by LXF for [Bugfix][T800][API-365]
if ((fast_pool->count < 64) &&
- !time_after(now, fast_pool->last + HZ))
+ !time_after(now, fast_pool->last + HZ) &&
+ crng_ready())
return;
+//finish modify by LXF for [Bugfix][T800][API-365]*************************
r = &input_pool;
if (!spin_trylock(&r->lock))