aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
-rw-r--r--net/bluetooth/l2cap_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index 3a6ce73541d9..083f2bf065d4 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -620,7 +620,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, ch
620 break; 620 break;
621 } 621 }
622 622
623 if (smp_conn_security(conn, sec.level)) 623 if (smp_conn_security(conn->hcon, sec.level))
624 break; 624 break;
625 sk->sk_state = BT_CONFIG; 625 sk->sk_state = BT_CONFIG;
626 chan->state = BT_CONFIG; 626 chan->state = BT_CONFIG;