Commit dcc365d8 authored by Marcel Holtmann's avatar Marcel Holtmann

[Bluetooth] Revert session reference counting fix

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: default avatarMarcel Holtmann <marcel@holtmann.org>
parent cad0f627
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment