===== net/bluetooth/rfcomm/core.c 1.49 vs edited ===== --- 1.49/net/bluetooth/rfcomm/core.c 2005-01-23 19:59:56 +01:00 +++ edited/net/bluetooth/rfcomm/core.c 2005-03-09 11:27:46 +01:00 @@ -389,6 +389,8 @@ rfcomm_dlc_unlock(d); skb_queue_purge(&d->tx_queue); + rfcomm_session_put(s); + rfcomm_dlc_unlink(d); } @@ -597,6 +599,8 @@ *err = -ENOMEM; goto failed; } + + rfcomm_session_hold(s); s->initiator = 1;