mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
Revert "Bluetooth: Hack: Don't dereference null pointer."
This reverts commit 612cd5aa16.
This commit is contained in:
parent
19a5d2b411
commit
ec62f37b70
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user