All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Fix SCO connection reference
@ 2013-04-11 14:35 Claudio Takahasi
  2013-04-11 14:35 ` [PATCH] Bluetooth: Add rejecting SCO Claudio Takahasi
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Claudio Takahasi @ 2013-04-11 14:35 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Claudio Takahasi, Vinicius Costa Gomes

This patch fixes decrementing SCO connection reference right after
stablishing the SCO connection with defer setup enabled. The dump below
shows a disconnection command with handle 0, the connection is still in
BT_CONNECT2 state and there isn't a handle associated with it.

< HCI Command: Accept Synchronous Connection (0x01|0x0029) plen 21
  bdaddr 78:47:1D:B3:72:6C
> HCI Event: Command Status (0x0f) plen 4
  Accept Synchronous Connection (0x01|0x0029) status 0x00 ncmd 1
< HCI Command: Disconnect (0x01|0x0006) plen 3
  handle 0 reason 0x13
  Reason: Remote User Terminated Connection
> HCI Event: Command Status (0x0f) plen 4
  Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Synchronous Connect Complete (0x2c) plen 17
  status 0x00 handle 46 bdaddr 78:47:1D:B3:72:6C
  type eSCO
  Air mode: CVSD
< SCO data: handle 46 flags 0x00 dlen 48

Signed-off-by: Claudio Takahasi <claudio.takahasi@openbossa.org>
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
---
 net/bluetooth/hci_event.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 0a2b128..7a05759 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1860,7 +1860,6 @@ static void hci_conn_request_evt(struct hci_dev *hdev, struct sk_buff *skb)
 		} else {
 			conn->state = BT_CONNECT2;
 			hci_proto_connect_cfm(conn, 0);
-			hci_conn_put(conn);
 		}
 	} else {
 		/* Connection rejected */
-- 
1.7.11.7


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

end of thread, other threads:[~2013-04-11 19:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 14:35 [PATCH] Bluetooth: Fix SCO connection reference Claudio Takahasi
2013-04-11 14:35 ` [PATCH] Bluetooth: Add rejecting SCO Claudio Takahasi
2013-04-11 14:52   ` Anderson Lizardo
2013-04-11 16:54   ` [PATCH v1] " Claudio Takahasi
2013-04-11 19:44     ` Gustavo Padovan
2013-04-11 14:35 ` [PATCH] Bluetooth: Remove unneeded parameter Claudio Takahasi
2013-04-11 16:55   ` [PATCH v1] " Claudio Takahasi
2013-04-11 19:43     ` Gustavo Padovan
2013-04-11 14:35 ` [PATCH] Bluetooth: Use GFP_KERNEL in sco_conn_add Claudio Takahasi
2013-04-11 19:37   ` Gustavo Padovan
2013-04-11 14:35 ` [PATCH] Bluetooth: Minor coding style fix Claudio Takahasi
2013-04-11 19:38   ` Gustavo Padovan
2013-04-11 16:53 ` [PATCH v1] Bluetooth: Fix SCO connection reference Claudio Takahasi
2013-04-11 19:36 ` [PATCH] " Gustavo Padovan
2013-04-11 19:39   ` Gustavo Padovan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.