diff options
author | Sasha Levin <levinsasha928@gmail.com> | 2012-05-28 00:36:56 +0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-05 07:34:10 +0400 |
commit | 3df92b31b2b593c5a067634ef2c30e76b2b2548d (patch) | |
tree | 30baeaaebdb378376c122bd75da89894077fdb7b /include/net/bluetooth | |
parent | 6754e0df133b088aa97ae6f2d3fd5377e43d1fc6 (diff) | |
download | linux-3df92b31b2b593c5a067634ef2c30e76b2b2548d.tar.xz |
Bluetooth: Really fix registering hci with duplicate name
Commit fc50744 ("Bluetooth: Fix registering hci with duplicate name") didn't
fully fix the duplicate naming issue with devices, and duplicate device names
could still be created:
[ 142.484097] device: 'hci1': device_add
[...]
[ 150.545263] device: 'hci1': device_add
[ 150.550128] kobject: 'hci1' (ffff880014cc4e58): kobject_add_internal: parent: 'bluetooth', set: 'devices'
[ 150.558979] ------------[ cut here ]------------
[ 150.561438] WARNING: at fs/sysfs/dir.c:529 sysfs_add_one+0xb0/0xd0()
[ 150.572974] Hardware name: Bochs
[ 150.580502] sysfs: cannot create duplicate filename '/devices/virtual/bluetooth/hci1'
[ 150.584444] Pid: 7563, comm: trinity-child1 Tainted: G W 3.4.0-next-20120524-sasha #296
[...]
Instead of the weird logic and the attempt at keeping the device list sorted,
just use an IDA.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
0 files changed, 0 insertions, 0 deletions