mirror of
https://github.com/LineageOS/android_device_essential_mata.git
synced 2026-04-25 09:04:43 +00:00
Initialize booleans
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
This commit is contained in:
committed by
Ethan Chen
parent
841419065a
commit
0ec677b9ef
@ -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