Skip to content

Commit

Permalink
[Bluetooth] Revert session reference counting fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Holtmann committed Aug 6, 2005
1 parent cad0f62 commit dcc365d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/bluetooth/rfcomm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit dcc365d

Please sign in to comment.