summaryrefslogtreecommitdiff
path: root/net/bluetooth/rfcomm/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/rfcomm/tty.c')
-rw-r--r--net/bluetooth/rfcomm/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c
index 99e947050ea9..c6939f465545 100644
--- a/net/bluetooth/rfcomm/tty.c
+++ b/net/bluetooth/rfcomm/tty.c
@@ -294,7 +294,7 @@ static int rfcomm_create_dev(struct sock *sk, unsigned long arg)
if (req.flags & (1 << RFCOMM_REUSE_DLC)) {
/* Socket must be connected */
- if (sk->state != BT_CONNECTED)
+ if (sk->sk_state != BT_CONNECTED)
return -EBADFD;
dlc = rfcomm_pi(sk)->dlc;
@@ -314,7 +314,7 @@ static int rfcomm_create_dev(struct sock *sk, unsigned long arg)
if (req.flags & (1 << RFCOMM_REUSE_DLC)) {
/* DLC is now used by device.
* Socket must be disconnected */
- sk->state = BT_CLOSED;
+ sk->sk_state = BT_CLOSED;
}
return id;