commit | ec1eda69b6e41cc7d5d2a520c87602e4dcd8353d | [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:23:48 2017 +0000 |
tree | d9c75a541b2598a8835a400c18e318f7fab27c12 | |
parent | 282278fa9ec8aa09446f2a390560b4e754bdbc88 [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