From: Andrei Emeltchenko Date: Thu, 19 Jun 2014 13:55:28 +0000 (+0300) Subject: android/ipc-tester: Fix possible double close X-Git-Tag: android-x86-4.4-r3~3530 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d62395d89502d56d553c0e5905e0d5bb71371d63;p=android-x86%2Fexternal-bluetooth-bluez.git android/ipc-tester: Fix possible double close I case of error we may close fd and pipe twice. --- diff --git a/android/ipc-tester.c b/android/ipc-tester.c index f1f93f219..f23e4b607 100644 --- a/android/ipc-tester.c +++ b/android/ipc-tester.c @@ -275,7 +275,7 @@ static void emulator(int pipe, int hci_index) close(pipe); close(fd); - bluetoothd_start(hci_index); + return bluetoothd_start(hci_index); failed: close(pipe);