diff
-	msft_unregister(hdev);
+	if (msft_unregister(hdev) == HDEV_FREED) {
+		return;
+	}
 	hci_dev_do_close(hdev);
