diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2012-05-31 21:53:39 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:16 -0400 |
commit | d060991f3bf4b6f8e9c5dec0c210fe76d9165000 (patch) | |
tree | ac65df40ba4d09916995db0d6154504187b0579b /net/bluetooth/af_bluetooth.c | |
parent | 0431a43ca5ada5ffd3668116b64168f4a1a64286 (diff) |
Bluetooth: Fix checking the wrong flag when accepting a socket
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>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r-- | net/bluetooth/af_bluetooth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index 251747269d37..f7db5792ec64 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) | |||
199 | } | 199 | } |
200 | 200 | ||
201 | if (sk->sk_state == BT_CONNECTED || !newsock || | 201 | if (sk->sk_state == BT_CONNECTED || !newsock || |
202 | test_bit(BT_DEFER_SETUP, &bt_sk(parent)->flags)) { | 202 | test_bit(BT_SK_DEFER_SETUP, &bt_sk(parent)->flags)) { |
203 | bt_accept_unlink(sk); | 203 | bt_accept_unlink(sk); |
204 | if (newsock) | 204 | if (newsock) |
205 | sock_graft(sk, newsock); | 205 | sock_graft(sk, newsock); |