diff options
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 54680fd39608..bd0a80120665 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -3324,8 +3324,8 @@ static void hci_link_key_notify_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
3324 | */ | 3324 | */ |
3325 | if (key->type == HCI_LK_DEBUG_COMBINATION && | 3325 | if (key->type == HCI_LK_DEBUG_COMBINATION && |
3326 | !test_bit(HCI_KEEP_DEBUG_KEYS, &hdev->dev_flags)) { | 3326 | !test_bit(HCI_KEEP_DEBUG_KEYS, &hdev->dev_flags)) { |
3327 | list_del(&key->list); | 3327 | list_del_rcu(&key->list); |
3328 | kfree(key); | 3328 | kfree_rcu(key, rcu); |
3329 | } else if (conn) { | 3329 | } else if (conn) { |
3330 | if (persistent) | 3330 | if (persistent) |
3331 | clear_bit(HCI_CONN_FLUSH_KEY, &conn->flags); | 3331 | clear_bit(HCI_CONN_FLUSH_KEY, &conn->flags); |