From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Changes: * v3: Added missing HCI_BREDR_ID It does make sense to use bitmask marking used device ids. This approach is used in device name allocation in many places like: .. drivers/infiniband/core/device.c <<alloc_name>> net/core/dev.c <<__dev_alloc_name>> net/core/sock.c <<assign_proto_idx>> .. Andrei Emeltchenko (2): Bluetooth: Fix registering hci with duplicate name Bluetooth: Fix debug printing unallocated name include/net/bluetooth/hci.h | 3 +++ net/bluetooth/hci_core.c | 32 ++++++++++++++++++-------------- 2 files changed, 21 insertions(+), 14 deletions(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html