Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368999
b: refs/heads/master
c: 24fd642
h: refs/heads/master
i:
  368997: 08e118b
  368995: 89760f5
  368991: b12b596
v: v3
  • Loading branch information
Dean Jenkins authored and Gustavo Padovan committed Mar 8, 2013
1 parent 26c21f7 commit f594f70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e888f2783384ec097bc0c88d9949776f3584ed3
refs/heads/master: 24fd642ccb24c8b5732d7d7b5e98277507860b2a
7 changes: 2 additions & 5 deletions trunk/net/bluetooth/rfcomm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,10 @@ static struct rfcomm_session *rfcomm_session_close(struct rfcomm_session *s,
struct rfcomm_dlc *d;
struct list_head *p, *n;

BT_DBG("session %p state %ld err %d", s, s->state, err);

s->state = BT_CLOSED;

BT_DBG("session %p state %ld err %d", s, s->state, err);

/* Close all dlcs */
list_for_each_safe(p, n, &s->dlcs) {
d = list_entry(p, struct rfcomm_dlc, list);
Expand Down Expand Up @@ -1188,7 +1188,6 @@ static struct rfcomm_session *rfcomm_recv_dm(struct rfcomm_session *s, u8 dlci)
else
err = ECONNRESET;

s->state = BT_CLOSED;
s = rfcomm_session_close(s, err);
}
return s;
Expand Down Expand Up @@ -1224,7 +1223,6 @@ static struct rfcomm_session *rfcomm_recv_disc(struct rfcomm_session *s,
else
err = ECONNRESET;

s->state = BT_CLOSED;
s = rfcomm_session_close(s, err);
}
return s;
Expand Down Expand Up @@ -1921,7 +1919,6 @@ static struct rfcomm_session *rfcomm_check_connection(struct rfcomm_session *s)
break;

case BT_CLOSED:
s->state = BT_CLOSED;
s = rfcomm_session_close(s, sk->sk_err);
break;
}
Expand Down

0 comments on commit f594f70

Please sign in to comment.