patch-2.4.27 linux-2.4.27/drivers/bluetooth/dtl1_cs.c

Next file: linux-2.4.27/drivers/bluetooth/hci_bcsp.c
Previous file: linux-2.4.27/drivers/bluetooth/btuart_cs.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/bluetooth/dtl1_cs.c linux-2.4.27/drivers/bluetooth/dtl1_cs.c
@@ -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);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)