Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Sep 9th, 2010 | Syntax: None | Size: 0.74 KB | Hits: 25 | Expires: Never
Copy text to clipboard
  1. diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
  2. index c52f091..554f501 100644
  3. --- a/net/bluetooth/hci_core.c
  4. +++ b/net/bluetooth/hci_core.c
  5. @@ -562,7 +562,6 @@ static int hci_dev_do_close(struct hci_dev *hdev)
  6.         hci_dev_lock_bh(hdev);
  7.         inquiry_cache_flush(hdev);
  8.         hci_conn_hash_flush(hdev);
  9. -       hci_blacklist_clear(hdev);
  10.         hci_dev_unlock_bh(hdev);
  11.  
  12.         hci_notify(hdev, HCI_DEV_DOWN);
  13. @@ -973,6 +972,10 @@ int hci_unregister_dev(struct hci_dev *hdev)
  14.  
  15.         hci_dev_do_close(hdev);
  16.  
  17. +       hci_dev_lock_bh(hdev);
  18. +       hci_blacklist_clear(hdev);
  19. +       hci_dev_unlock_bh(hdev);
  20. +
  21.         for (i = 0; i < NUM_REASSEMBLY; i++)
  22.                 kfree_skb(hdev->reassembly[i]);