mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Initialize booleans
(Cherry-pick of cb840d8de7)
Since mMonitorCreated wasnt initialized to false, join was called
on the thread eventhough the thread didnt exist.
Bug: 72691300
Test: Booted asan and verified that adb was enabled.
Change-Id: Iafb529b66084fbe196d6c8b10fabd62a5ec8ec4a
Merged-In: Iafb529b66084fbe196d6c8b10fabd62a5ec8ec4a
This commit is contained in:
@@ -164,7 +164,9 @@ static void *monitorFfs(void *param) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
UsbGadget::UsbGadget() {
|
||||
UsbGadget::UsbGadget()
|
||||
: mMonitorCreated(false),
|
||||
mCurrentUsbFunctionsApplied(false) {
|
||||
if (access(OS_DESC_PATH, R_OK) != 0)
|
||||
ALOGE("configfs setup not done yet");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user