* [PATCH] Bluetooth: Initialize the transmit queue for L2CAP streaming mode
@ 2012-05-14 21:49 Mat Martineau
2012-05-15 7:22 ` Andrei Emeltchenko
2012-05-15 21:48 ` Gustavo Padovan
0 siblings, 2 replies; 3+ messages in thread
From: Mat Martineau @ 2012-05-14 21:49 UTC (permalink / raw)
To: linux-bluetooth, gustavo; +Cc: pkrystad
Commit 105bdf9ec19e729bacdb33861c74fcf3eb39eb37 introduced a
regression in L2CAP streaming mode due to rearranged initialization
code that is shared between ERTM and streaming mode. This change
makes sure the transmit queue is initialized in both modes.
Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
---
net/bluetooth/l2cap_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 869beb3..7adfcec 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -2349,6 +2349,8 @@ static inline int l2cap_ertm_init(struct l2cap_chan *chan)
chan->sdu_last_frag = NULL;
chan->sdu_len = 0;
+ skb_queue_head_init(&chan->tx_q);
+
if (chan->mode != L2CAP_MODE_ERTM)
return 0;
@@ -2360,7 +2362,6 @@ static inline int l2cap_ertm_init(struct l2cap_chan *chan)
INIT_DELAYED_WORK(&chan->ack_timer, l2cap_ack_timeout);
skb_queue_head_init(&chan->srej_q);
- skb_queue_head_init(&chan->tx_q);
INIT_LIST_HEAD(&chan->srej_l);
err = l2cap_seq_list_init(&chan->srej_list, chan->tx_win);
--
1.7.10
--
Mat Martineau
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Bluetooth: Initialize the transmit queue for L2CAP streaming mode
2012-05-14 21:49 [PATCH] Bluetooth: Initialize the transmit queue for L2CAP streaming mode Mat Martineau
@ 2012-05-15 7:22 ` Andrei Emeltchenko
2012-05-15 21:48 ` Gustavo Padovan
1 sibling, 0 replies; 3+ messages in thread
From: Andrei Emeltchenko @ 2012-05-15 7:22 UTC (permalink / raw)
To: Mat Martineau; +Cc: linux-bluetooth, gustavo, pkrystad
Hi Mat,
On Mon, May 14, 2012 at 02:49:27PM -0700, Mat Martineau wrote:
> Commit 105bdf9ec19e729bacdb33861c74fcf3eb39eb37 introduced a
> regression in L2CAP streaming mode due to rearranged initialization
> code that is shared between ERTM and streaming mode. This change
> makes sure the transmit queue is initialized in both modes.
>
> Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
This one I did not test yet.
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Best regards
Andrei Emeltchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Bluetooth: Initialize the transmit queue for L2CAP streaming mode
2012-05-14 21:49 [PATCH] Bluetooth: Initialize the transmit queue for L2CAP streaming mode Mat Martineau
2012-05-15 7:22 ` Andrei Emeltchenko
@ 2012-05-15 21:48 ` Gustavo Padovan
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Padovan @ 2012-05-15 21:48 UTC (permalink / raw)
To: Mat Martineau; +Cc: linux-bluetooth, pkrystad
Hi Mat,
* Mat Martineau <mathewm@codeaurora.org> [2012-05-14 14:49:27 -0700]:
> Commit 105bdf9ec19e729bacdb33861c74fcf3eb39eb37 introduced a
> regression in L2CAP streaming mode due to rearranged initialization
> code that is shared between ERTM and streaming mode. This change
> makes sure the transmit queue is initialized in both modes.
>
> Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
> ---
> net/bluetooth/l2cap_core.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Patch has been applied to bluetooth-next. Thanks.
Gustavo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-15 21:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-14 21:49 [PATCH] Bluetooth: Initialize the transmit queue for L2CAP streaming mode Mat Martineau
2012-05-15 7:22 ` Andrei Emeltchenko
2012-05-15 21:48 ` Gustavo Padovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).