[PATCH] Bluetooth: fix "list_add double add" in hci_conn_complete_evt

2020-08-22 Thread Coiby Xu
When two HCI_EV_CONN_COMPLETE event packets with status=0 of the same HCI connection are received, device_add would be called twice which leads to kobject_add being called twice. Thus duplicate (struct hci_conn *conn)->dev.kobj.entry would be inserted into (struct hci_conn *conn)->dev.kobj.kset->li

Re: [PATCH] Bluetooth: fix "list_add double add" in hci_conn_complete_evt

2020-08-31 Thread Marcel Holtmann
Hi Coiby, > When two HCI_EV_CONN_COMPLETE event packets with status=0 of the same > HCI connection are received, device_add would be called twice which > leads to kobject_add being called twice. Thus duplicate > (struct hci_conn *conn)->dev.kobj.entry would be inserted into > (struct hci_conn *con

Re: [PATCH] Bluetooth: fix "list_add double add" in hci_conn_complete_evt

2020-09-02 Thread Coiby Xu
On Mon, Aug 31, 2020 at 06:06:18PM +0200, Marcel Holtmann wrote: Hi Coiby, Hi Marcel, Thank you for reviewing this patch! When two HCI_EV_CONN_COMPLETE event packets with status=0 of the same HCI connection are received, device_add would be called twice which leads to kobject_add being cal