mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-common: libril: Change rild initial sequence to guarantee non-null function pointer before rild register its hidl service
Test: Build and local test Bug: 78886552 Change-Id: I1137cc0f4f09f0304662a2227b84c2b5b228d45d
This commit is contained in:
parent
5dc9bd58a7
commit
66f90a9d4a
1 changed files with 3 additions and 3 deletions
|
@ -8660,6 +8660,9 @@ void radio::registerService(RIL_RadioFunctions *callbacks, CommandInfo *commands
|
|||
simCount = SIM_COUNT;
|
||||
#endif
|
||||
|
||||
s_vendorFunctions = callbacks;
|
||||
s_commands = commands;
|
||||
|
||||
configureRpcThreadpool(1, true /* callerWillJoin */);
|
||||
for (int i = 0; i < simCount; i++) {
|
||||
pthread_rwlock_t *radioServiceRwlockPtr = getRadioServiceRwlock(i);
|
||||
|
@ -8681,9 +8684,6 @@ void radio::registerService(RIL_RadioFunctions *callbacks, CommandInfo *commands
|
|||
ret = pthread_rwlock_unlock(radioServiceRwlockPtr);
|
||||
assert(ret == 0);
|
||||
}
|
||||
|
||||
s_vendorFunctions = callbacks;
|
||||
s_commands = commands;
|
||||
}
|
||||
|
||||
void rilc_thread_pool() {
|
||||
|
|
Loading…
Reference in a new issue