Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/9] android/ipc-tester: Fix possible double close
@ 2014-06-19 13:55 Andrei Emeltchenko
  2014-06-19 13:55 ` [PATCH 2/9] tools/mpris-player: Fix overflow before type widening Andrei Emeltchenko
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Andrei Emeltchenko @ 2014-06-19 13:55 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

I case of error we may close fd and pipe twice.
---
 android/ipc-tester.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/ipc-tester.c b/android/ipc-tester.c
index f1f93f2..f23e4b6 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);
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-06-23 11:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-19 13:55 [PATCH 1/9] android/ipc-tester: Fix possible double close Andrei Emeltchenko
2014-06-19 13:55 ` [PATCH 2/9] tools/mpris-player: Fix overflow before type widening Andrei Emeltchenko
2014-06-19 13:55 ` [PATCH 3/9] queue: Fix unreachable code Andrei Emeltchenko
2014-06-19 13:55 ` [PATCH 4/9] tools/csr: Fix wrong error check Andrei Emeltchenko
2014-06-19 13:55 ` [PATCH 5/9] monitor: Fix checking boolean return value Andrei Emeltchenko
2014-06-19 13:55 ` [PATCH 6/9] bnep: Fix redundant check Andrei Emeltchenko
2014-06-19 13:55 ` [PATCH 7/9] hcitool: Fix adding missing break Andrei Emeltchenko
2014-06-19 13:55 ` [PATCH 8/9] hciconfig: " Andrei Emeltchenko
2014-06-19 13:55 ` [PATCH 9/9] Fix using address of array instead of size Andrei Emeltchenko
2014-06-23  7:55   ` Johan Hedberg
2014-06-23  8:09     ` Andrei Emeltchenko
2014-06-23 11:19     ` [PATCH] " Andrei Emeltchenko
2014-06-23 11:38       ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox