linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Fix checking the wrong flag when accepting a socket
@ 2012-06-01  1:53 Vinicius Costa Gomes
  2012-06-01  7:12 ` Andrei Emeltchenko
  2012-06-01 23:00 ` Gustavo Padovan
  0 siblings, 2 replies; 5+ messages in thread
From: Vinicius Costa Gomes @ 2012-06-01  1:53 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Vinicius Costa Gomes

Most probably a typo, the check should have been for BT_SK_DEFER_SETUP
instead of BT_DEFER_SETUP (which right now only represents a socket
option).

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
---
 net/bluetooth/af_bluetooth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
index 2517472..f7db579 100644
--- a/net/bluetooth/af_bluetooth.c
+++ b/net/bluetooth/af_bluetooth.c
@@ -199,7 +199,7 @@ struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock)
 		}
 
 		if (sk->sk_state == BT_CONNECTED || !newsock ||
-		    test_bit(BT_DEFER_SETUP, &bt_sk(parent)->flags)) {
+		    test_bit(BT_SK_DEFER_SETUP, &bt_sk(parent)->flags)) {
 			bt_accept_unlink(sk);
 			if (newsock)
 				sock_graft(sk, newsock);
-- 
1.7.10.3


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

end of thread, other threads:[~2012-06-05  3:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-01  1:53 [PATCH] Bluetooth: Fix checking the wrong flag when accepting a socket Vinicius Costa Gomes
2012-06-01  7:12 ` Andrei Emeltchenko
2012-06-01 23:00 ` Gustavo Padovan
2012-06-05  3:01   ` Johan Hedberg
2012-06-05  3:15     ` Johan Hedberg

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).