diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-10-28 19:20:57 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-10-28 19:20:57 +0200 |
commit | 245dc3d19b6ff7db42c9f3cca9006c8db59e2dee (patch) | |
tree | e5b2594ccdad0af1901efd5f6109d9e28391e882 /drivers/bluetooth | |
parent | dd7f5527b3e68a7b2f715ae1a21164383f418013 (diff) | |
download | blackbird-op-linux-245dc3d19b6ff7db42c9f3cca9006c8db59e2dee.tar.gz blackbird-op-linux-245dc3d19b6ff7db42c9f3cca9006c8db59e2dee.zip |
[Bluetooth] Ignore additional interfaces of BPA 100/105 devices
If a BPA 100/105 device contains more then one interface then ignore the
additional interfaces, because they are unused.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index 4fa85234d8b5..0db0400519c9 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c @@ -550,6 +550,9 @@ static int bpa10x_probe(struct usb_interface *intf, const struct usb_device_id * if (ignore) return -ENODEV; + if (intf->cur_altsetting->desc.bInterfaceNumber > 0) + return -ENODEV; + data = kmalloc(sizeof(*data), GFP_KERNEL); if (!data) { BT_ERR("Can't allocate data structure"); |