aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/bluetooth/hci_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index a35d8441187a..4eba9d6fc9a5 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2535,8 +2535,10 @@ bool hci_bdaddr_is_paired(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type)
2535 2535
2536 rcu_read_lock(); 2536 rcu_read_lock();
2537 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) { 2537 list_for_each_entry_rcu(k, &hdev->long_term_keys, list) {
2538 if (k->bdaddr_type == addr_type && !bacmp(bdaddr, &k->bdaddr)) 2538 if (k->bdaddr_type == addr_type && !bacmp(bdaddr, &k->bdaddr)) {
2539 rcu_read_unlock();
2539 return true; 2540 return true;
2541 }
2540 } 2542 }
2541 rcu_read_unlock(); 2543 rcu_read_unlock();
2542 2544