diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/smp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 3ebf65b50881..3d38553eb526 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c | |||
@@ -514,8 +514,6 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, | |||
514 | set_bit(SMP_FLAG_TK_VALID, &smp->flags); | 514 | set_bit(SMP_FLAG_TK_VALID, &smp->flags); |
515 | } | 515 | } |
516 | 516 | ||
517 | hci_dev_lock(hcon->hdev); | ||
518 | |||
519 | if (method == REQ_PASSKEY) | 517 | if (method == REQ_PASSKEY) |
520 | ret = mgmt_user_passkey_request(hcon->hdev, &hcon->dst, | 518 | ret = mgmt_user_passkey_request(hcon->hdev, &hcon->dst, |
521 | hcon->type, hcon->dst_type); | 519 | hcon->type, hcon->dst_type); |
@@ -528,8 +526,6 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, | |||
528 | hcon->type, hcon->dst_type, | 526 | hcon->type, hcon->dst_type, |
529 | passkey, 0); | 527 | passkey, 0); |
530 | 528 | ||
531 | hci_dev_unlock(hcon->hdev); | ||
532 | |||
533 | return ret; | 529 | return ret; |
534 | } | 530 | } |
535 | 531 | ||