diff options
author | Badhri Jagan Sridharan <Badhri@google.com> | 2018-01-31 00:39:42 -0800 |
---|---|---|
committer | Badhri Jagan Sridharan <Badhri@google.com> | 2018-01-31 00:43:09 -0800 |
commit | cb840d8de751e45daea008a7da912186a1884210 (patch) | |
tree | 6015762c0c9da0310fd737b6b79919549141a7d4 /usb | |
parent | d449eb488004c3ac10cfb429ef167ada6925b557 (diff) | |
download | wahoo-cb840d8de751e45daea008a7da912186a1884210.tar.gz |
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
Diffstat (limited to 'usb')
-rw-r--r-- | usb/UsbGadget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usb/UsbGadget.cpp b/usb/UsbGadget.cpp index e1ee289a..33944433 100644 --- a/usb/UsbGadget.cpp +++ b/usb/UsbGadget.cpp @@ -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"); } |