[Bugfix][T800][API-365]During the abnormal period of the netstat -an command prompt, the wifi service SOCKET communication is abnormal merge form GSW3.0
Change-Id: Ib08eb2aa94d68332915f2b14b8cbd7bc42f85131
diff --git a/src/kernel/linux/v4.19/drivers/char/random.c b/src/kernel/linux/v4.19/drivers/char/random.c
index af6e240..79ebff7 100644
--- a/src/kernel/linux/v4.19/drivers/char/random.c
+++ b/src/kernel/linux/v4.19/drivers/char/random.c
@@ -1267,10 +1267,12 @@
return;
}
+//modify by LXF for [Bugfix][T800][API-365] in 2022/12/14 merged from GSW3.0
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))
return;