Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54419
b: refs/heads/master
c: 9cf5b0e
h: refs/heads/master
i:
  54417: e06cc94
  54415: 9f42cee
v: v3
  • Loading branch information
Marcel Holtmann committed May 4, 2007
1 parent 64096d5 commit 6ebaac1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77f2a45fa1ba33147fd6cc8ae546188504a822cd
refs/heads/master: 9cf5b0ea3a7f1432c61029f7aaf4b8b338628884
10 changes: 10 additions & 0 deletions trunk/net/bluetooth/rfcomm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,12 @@ static int rfcomm_recv_ua(struct rfcomm_session *s, u8 dlci)
case BT_DISCONN:
d->state = BT_CLOSED;
__rfcomm_dlc_close(d, 0);

if (list_empty(&s->dlcs)) {
s->state = BT_DISCONN;
rfcomm_send_disc(s, 0);
}

break;
}
} else {
Expand All @@ -1067,6 +1073,10 @@ static int rfcomm_recv_ua(struct rfcomm_session *s, u8 dlci)
s->state = BT_CONNECTED;
rfcomm_process_connect(s);
break;

case BT_DISCONN:
rfcomm_session_put(s);
break;
}
}
return 0;
Expand Down

0 comments on commit 6ebaac1

Please sign in to comment.