]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[Bluetooth] Revert session reference counting fix
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Aug 2005 10:36:42 +0000 (12:36 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 6 Aug 2005 10:36:42 +0000 (12:36 +0200)
The fix for the reference counting problem of the signal DLC introduced
a race condition which leads to an oops. The reason for it is not fully
understood by now and so revert this fix, because the reference counting
problem is not crashing the RFCOMM layer and its appearance it rare.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/core.c

index e9e6fda66f1a3e221013c628612808ea5529e2a1..27bf5047cd3335967c90e8232ac8d9231ce94259 100644 (file)
@@ -389,8 +389,6 @@ static int __rfcomm_dlc_close(struct rfcomm_dlc *d, int err)
                rfcomm_dlc_unlock(d);
 
                skb_queue_purge(&d->tx_queue);
-               rfcomm_session_put(s);
-
                rfcomm_dlc_unlink(d);
        }
 
@@ -600,8 +598,6 @@ static struct rfcomm_session *rfcomm_session_create(bdaddr_t *src, bdaddr_t *dst
                goto failed;
        }
 
-       rfcomm_session_hold(s);
-
        s->initiator = 1;
 
        bacpy(&addr.l2_bdaddr, dst);