mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Bluetooth: hidp: Initialize list header of hidp session user
When new hidp session is created, list header in l2cap_user is not initialized and this causes list_empty() to fail in l2cap_register_user() even if l2cap_user list is empty. Signed-off-by: Tedd Ho-Jeong An <[email protected]> Tested-by: Jörg Otte <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
011cb197a8
commit
7c258670ce
1 changed files with 1 additions and 0 deletions
|
|
@ -915,6 +915,7 @@ static int hidp_session_new(struct hidp_session **out, const bdaddr_t *bdaddr,
|
|||
session->conn = l2cap_conn_get(conn);
|
||||
session->user.probe = hidp_session_probe;
|
||||
session->user.remove = hidp_session_remove;
|
||||
INIT_LIST_HEAD(&session->user.list);
|
||||
session->ctrl_sock = ctrl_sock;
|
||||
session->intr_sock = intr_sock;
|
||||
skb_queue_head_init(&session->ctrl_transmit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue