===== drivers/bluetooth/dtl1_cs.c 1.2 vs edited ===== --- 1.2/drivers/bluetooth/dtl1_cs.c 2002-08-03 13:53:56 +02:00 +++ edited/drivers/bluetooth/dtl1_cs.c 2004-07-24 22:30:33 +02:00 @@ -535,6 +535,9 @@ unsigned int iobase = info->link.io.BasePort1; struct hci_dev *hdev = &(info->hdev); + if (info->link.state & DEV_CONFIG_PENDING) + return -ENODEV; + dtl1_hci_close(hdev); spin_lock_irqsave(&(info->lock), flags); ===== drivers/bluetooth/bluecard_cs.c 1.1 vs edited ===== --- 1.1/drivers/bluetooth/bluecard_cs.c 2002-08-03 13:54:07 +02:00 +++ edited/drivers/bluetooth/bluecard_cs.c 2004-07-24 22:30:53 +02:00 @@ -803,6 +803,9 @@ unsigned int iobase = info->link.io.BasePort1; struct hci_dev *hdev = &(info->hdev); + if (info->link.state & DEV_CONFIG_PENDING) + return -ENODEV; + bluecard_hci_close(hdev); clear_bit(CARD_READY, &(info->hw_state)); ===== drivers/bluetooth/bt3c_cs.c 1.2 vs edited ===== --- 1.2/drivers/bluetooth/bt3c_cs.c 2004-04-16 14:05:25 +02:00 +++ edited/drivers/bluetooth/bt3c_cs.c 2004-07-24 22:31:11 +02:00 @@ -643,6 +643,9 @@ { struct hci_dev *hdev = &(info->hdev); + if (info->link.state & DEV_CONFIG_PENDING) + return -ENODEV; + bt3c_hci_close(hdev); if (hci_unregister_dev(hdev) < 0) ===== drivers/bluetooth/btuart_cs.c 1.1 vs edited ===== --- 1.1/drivers/bluetooth/btuart_cs.c 2002-10-20 21:42:54 +02:00 +++ edited/drivers/bluetooth/btuart_cs.c 2004-07-24 22:30:46 +02:00 @@ -556,6 +556,9 @@ unsigned int iobase = info->link.io.BasePort1; struct hci_dev *hdev = &(info->hdev); + if (info->link.state & DEV_CONFIG_PENDING) + return -ENODEV; + btuart_hci_close(hdev); spin_lock_irqsave(&(info->lock), flags);