Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/2] android/bluetooth: Set unpaired cb list to NULL while unregistering bt
@ 2014-09-03 13:17 Grzegorz Kolodziejczyk
  2014-09-03 13:17 ` [PATCH 2/2] android/bluetoot: Minor style fix Grzegorz Kolodziejczyk
  2014-09-03 14:42 ` [PATCH 1/2] android/bluetooth: Set unpaired cb list to NULL while unregistering bt Szymon Janc
  0 siblings, 2 replies; 3+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-09-03 13:17 UTC (permalink / raw)
  To: linux-bluetooth

Unpaired callback list for profiles needs to be set to NULL while
unregistering bluetooth. Other profiles may try to unregister and remove
its unpair cb, this cause invalid read callback list.
---
 android/bluetooth.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/android/bluetooth.c b/android/bluetooth.c
index 8b47015..d275dea 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -5281,4 +5281,5 @@ void bt_bluetooth_unregister(void)
 	hal_ipc = NULL;
 
 	queue_destroy(unpaired_cb_list, NULL);
+	unpaired_cb_list = NULL;
 }
-- 
1.9.3


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

end of thread, other threads:[~2014-09-03 14:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-03 13:17 [PATCH 1/2] android/bluetooth: Set unpaired cb list to NULL while unregistering bt Grzegorz Kolodziejczyk
2014-09-03 13:17 ` [PATCH 2/2] android/bluetoot: Minor style fix Grzegorz Kolodziejczyk
2014-09-03 14:42 ` [PATCH 1/2] android/bluetooth: Set unpaired cb list to NULL while unregistering bt Szymon Janc

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