commit | cffc31f44045d6a7329ecf7521309eef040d09ab | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@google.com> | Thu Aug 20 16:53:16 2015 -0700 |
committer | Pavlin Radoslavov <pavlin@google.com> | Sun Aug 23 18:13:45 2015 -0700 |
tree | c81c20d7e177fa65acf881193cde42f739acfb62 | |
parent | 450b114a3244546674146193e54a1e32c4c1425c [diff] |
Check the return value when reading HCI type byte Add missing return value check when reading the HCI type byte. This check is needed as a safeguard. For example, function event_uart_has_bytes() could be called (indirectly) within the run_reactor() loop not only when there are bytes to read, but also if there is an error (e.g., EPOLLHUP | EPOLLRDHUP | EPOLLERR). Bug: 23105107 Change-Id: Ic3b6e4d656406949e384c8106b0c607f7c221759