OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
958a00e
)
AVCTP: Fix not destroying browsing channel if disconnected
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Sun, 27 Jan 2013 23:52:15 +0000
(17:52 -0600)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Mon, 28 Jan 2013 00:00:02 +0000
(18:00 -0600)
If the browsing channel is disconnected it should be destroyed
immediatelly and set to NULL otherwise it will point to invalid channel.
profiles/audio/avctp.c
patch
|
blob
|
history
diff --git
a/profiles/audio/avctp.c
b/profiles/audio/avctp.c
index
6ad2b66
..
6cac718
100644
(file)
--- a/
profiles/audio/avctp.c
+++ b/
profiles/audio/avctp.c
@@
-485,6
+485,10
@@
static void avctp_set_state(struct avctp *session, avctp_state_t new_state)
break;
case AVCTP_STATE_CONNECTED:
DBG("AVCTP Connected");
+ if (session->browsing) {
+ avctp_channel_destroy(session->browsing);
+ session->browsing = NULL;
+ }
break;
case AVCTP_STATE_BROWSING_CONNECTING:
DBG("AVCTP Browsing Connecting");