Edward Adam Davis ed95885549 Bluetooth: SCO: remove the redundant sco_conn_put
When adding conn, it is necessary to increase and retain the conn reference
count at the same time.

Another problem was fixed along the way, conn_put is missing when hcon is NULL
in the timeout routine.

Fixes: e6720779ae61 ("Bluetooth: SCO: Use kref to track lifetime of sco_conn")
Reported-and-tested-by: syzbot+489f78df4709ac2bfdd3@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=489f78df4709ac2bfdd3
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2024-11-26 11:07:28 -05:00
..
2023-02-13 18:34:48 +08:00
2021-04-27 17:05:53 -07:00
2024-03-08 10:22:17 -05:00
2024-11-21 08:28:08 -08:00
2024-03-06 17:22:39 -05:00
2024-07-15 10:11:35 -04:00
2024-11-26 11:07:25 -05:00
2024-07-15 10:11:35 -04:00
2021-06-26 07:12:37 +02:00