commit | 07ea6b4f7eb40777d46c94fb1b9266398f5608c9 | [log] [tgz] |
---|---|---|
author | Myles Watson <mylesgw@google.com> | Tue Aug 08 16:00:30 2017 -0700 |
committer | Myles Watson <mylesgw@google.com> | Wed Aug 09 18:22:44 2017 +0000 |
tree | 6f68437929c001a703c86d9f7e139db25b9c22fa | |
parent | 7bea962c9c90e6d5fd3aec0d41f427ea1e4a91c2 [diff] |
Bluetooth: Check the number of file descriptors Opening the serial port(s) returns -1 when it fails, check that the number of file descriptors is greater than 0 and less than the size of the array. Test: VtsHalBluetoothV1_0TargetTest, Bluetooth start/stop Bug: 64420262 Change-Id: Icbffa5bd8c02030e389bac03aa5e1e78cc3c6057 (cherry picked from commit 89316af23eb7aa300015a3d80bc97891cfe6031e)