patch-2.4.27 linux-2.4.27/drivers/bluetooth/bluecard_cs.c
Next file: linux-2.4.27/drivers/bluetooth/bt3c_cs.c
Previous file: linux-2.4.27/drivers/bluetooth/bfusb.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
2004-08-07 16:26:04.682347928 -0700
- Orig file:
linux-2.4.26/drivers/bluetooth/bluecard_cs.c
- Orig date:
2002-11-28 15:53:12.000000000 -0800
diff -urN linux-2.4.26/drivers/bluetooth/bluecard_cs.c linux-2.4.27/drivers/bluetooth/bluecard_cs.c
@@ -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));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)