]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove the device from the list in the destructor
authorGianluca Anzolin <gianluca@sottospazio.it>
Mon, 29 Jul 2013 15:08:09 +0000 (17:08 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 21 Aug 2013 14:47:06 +0000 (16:47 +0200)
commitace4c1c968b046682c0540ef6a619d0e109e093c
treea5da8a08933923db90297ca5a02ed6d02606f593
parent17c43d2565c9969b112780e41796c1dbc484a0ca
Bluetooth: Remove the device from the list in the destructor

The current code removes the device from the device list in several
places. Do it only in the destructor instead and in the error path of
rfcomm_add_dev() if the device couldn't be initialized.

Signed-off-by: Gianluca Anzolin <gianluca@sottospazio.it>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/rfcomm/tty.c