Revert "Bluetooth: Hack: Don't dereference null pointer."

This reverts commit 612cd5aa16.
This commit is contained in:
黄涛 2011-07-30 22:16:50 +08:00
parent 19a5d2b411
commit ec62f37b70

View File

@ -464,8 +464,7 @@ 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);
if (parent)
parent->sk_data_ready(parent, 0);
parent->sk_data_ready(parent, 0);
} else {
sk->sk_state = BT_CONFIG;