Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254970
b: refs/heads/master
c: 05e9a2f
h: refs/heads/master
v: v3
  • Loading branch information
Ilia Kolomisnky authored and David S. Miller committed Jul 16, 2011
1 parent 0250e1a commit aaf7c0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 9191e6ad897a8b4f0b89aea7c2d3c843f29a8630
refs/heads/master: 05e9a2f67849e427f8900bad0a3f2a939e8dd3d6
6 changes: 4 additions & 2 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,8 @@ static void l2cap_conn_start(struct l2cap_conn *conn)
struct sock *parent = bt_sk(sk)->parent;
rsp.result = cpu_to_le16(L2CAP_CR_PEND);
rsp.status = cpu_to_le16(L2CAP_CS_AUTHOR_PEND);
parent->sk_data_ready(parent, 0);
if (parent)
parent->sk_data_ready(parent, 0);

} else {
sk->sk_state = BT_CONFIG;
Expand Down Expand Up @@ -4009,7 +4010,8 @@ static int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
struct sock *parent = bt_sk(sk)->parent;
res = L2CAP_CR_PEND;
stat = L2CAP_CS_AUTHOR_PEND;
parent->sk_data_ready(parent, 0);
if (parent)
parent->sk_data_ready(parent, 0);
} else {
sk->sk_state = BT_CONFIG;
res = L2CAP_CR_SUCCESS;
Expand Down

0 comments on commit aaf7c0d

Please sign in to comment.