Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167704
b: refs/heads/master
c: 45054dc
h: refs/heads/master
v: v3
  • Loading branch information
Dave Young authored and David S. Miller committed Oct 20, 2009
1 parent db8a90d commit ad4239f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: f74c77cb1124a11acf69c98d10c0fdc22f322664
refs/heads/master: 45054dc1bf2367ccb0e7c0486037907cd9395f8b
9 changes: 6 additions & 3 deletions trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,12 @@ static struct l2cap_conn *l2cap_conn_add(struct hci_conn *hcon, u8 status)

conn->feat_mask = 0;

setup_timer(&conn->info_timer, l2cap_info_timeout,
(unsigned long) conn);

spin_lock_init(&conn->lock);
rwlock_init(&conn->chan_list.lock);

setup_timer(&conn->info_timer, l2cap_info_timeout,
(unsigned long) conn);

conn->disc_reason = 0x13;

return conn;
Expand Down Expand Up @@ -783,6 +783,9 @@ static void l2cap_sock_init(struct sock *sk, struct sock *parent)
/* Default config options */
pi->conf_len = 0;
pi->flush_to = L2CAP_DEFAULT_FLUSH_TO;
skb_queue_head_init(TX_QUEUE(sk));
skb_queue_head_init(SREJ_QUEUE(sk));
INIT_LIST_HEAD(SREJ_LIST(sk));
}

static struct proto l2cap_proto = {
Expand Down

0 comments on commit ad4239f

Please sign in to comment.