[BLUETOOTH]: Move children of connection device to NULL before connection down.
authorDave Young <hidave.darkstar@gmail.com>
Tue, 22 Jan 2008 06:35:21 +0000 (22:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2008 11:11:39 +0000 (03:11 -0800)
commitacea6852f32b8805e166d885ed7e9f0c7cd10d41
tree515aefb6f5346d417933a6b8958d1052cea51f6a
parent667984d9e481e43a930a478c588dced98cb61fea
[BLUETOOTH]: Move children of connection device to NULL before connection down.

The rfcomm tty device will possibly retain even when conn is down, and
sysfs doesn't support zombie device moving, so this patch move the tty
device before conn device is destroyed.

For the bug refered please see :
http://lkml.org/lkml/2007/12/28/87

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bluetooth/hci_sysfs.c
net/bluetooth/rfcomm/tty.c