summaryrefslogtreecommitdiffstats
path: root/hci/src/hci_hal_h4.c
diff options
context:
space:
mode:
authorSharvil Nanavati <sharvil@google.com>2016-06-20 19:16:12 -0700
committerJessica Wagantall <jwagantall@cyngn.com>2016-08-02 01:12:33 -0700
commit791c2192a9a19e42d8a396b0e46e1b15feb542cb (patch)
tree32c97666df9efaadc8206ea0499cf2480d2b8829 /hci/src/hci_hal_h4.c
parent0e94bd5ac42a4621c873c8c2af4aa2aced3c6442 (diff)
downloadandroid_system_bt-791c2192a9a19e42d8a396b0e46e1b15feb542cb.tar.gz
android_system_bt-791c2192a9a19e42d8a396b0e46e1b15feb542cb.tar.bz2
android_system_bt-791c2192a9a19e42d8a396b0e46e1b15feb542cb.zip
Fix potential DoS caused by delivering signal to BT processstable/cm-13.0-ZNH2K
Ticket: CYNGNOS-3177 Bug: 28885210 Change-Id: I63866d894bfca47464d6e42e3fb0357c4f94d360
Diffstat (limited to 'hci/src/hci_hal_h4.c')
-rw-r--r--hci/src/hci_hal_h4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hci/src/hci_hal_h4.c b/hci/src/hci_hal_h4.c
index d4dc105f5..09d035454 100644
--- a/hci/src/hci_hal_h4.c
+++ b/hci/src/hci_hal_h4.c
@@ -197,7 +197,7 @@ static uint16_t transmit_data(serial_data_type_t type, uint8_t *data, uint16_t l
uint16_t transmitted_length = 0;
while (length > 0) {
- ssize_t ret = write(uart_fd, data + transmitted_length, length);
+ ssize_t ret = TEMP_FAILURE_RETRY(write(uart_fd, data + transmitted_length, length));
switch (ret) {
case -1:
LOG_ERROR("In %s, error writing to the uart serial port: %s", __func__, strerror(errno));