Race condition in opening/closing of uhid file descriptor
When HID host is connected, uhid file descriptor is opened from bta_hh in main thread. However, when it is disconnected, uhid file descriptor is closed from btif_hh in jni thread. If the HID device gets disconnected and connected in quick succession, the race condition can cause connection to fail. Bug: 264988156 Test: Manual Change-Id: I9ff6196eeebdd0a1dd5245f29a174c4b28dbe1b6
Loading
Please register or sign in to comment