linux/net/bluetooth
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: e6720779ae ("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
..
bnep
cmtp
hidp
rfcomm Bluetooth: Fix type of len in rfcomm_sock_getsockopt{,_old}() 2024-11-14 15:32:47 -05:00
6lowpan.c
Kconfig
Makefile
af_bluetooth.c
aosp.c
aosp.h
coredump.c
ecdh_helper.c
ecdh_helper.h
eir.c
eir.h
hci_codec.c
hci_codec.h
hci_conn.c Bluetooth: ISO: Send BIG Create Sync via hci_sync 2024-11-14 15:39:59 -05:00
hci_core.c Bluetooth: hci_core: Fix calling mgmt_device_connected 2024-11-14 15:40:35 -05:00
hci_debugfs.c
hci_debugfs.h
hci_event.c Networking changes for 6.13. 2024-11-21 08:28:08 -08:00
hci_sock.c
hci_sync.c Bluetooth: Support new quirks for ATS2851 2024-11-14 15:33:57 -05:00
hci_sysfs.c Bluetooth: fix use-after-free in device_for_each_child() 2024-11-14 15:41:13 -05:00
iso.c Bluetooth: ISO: Send BIG Create Sync via hci_sync 2024-11-14 15:39:59 -05:00
l2cap_core.c
l2cap_sock.c
leds.c
leds.h
lib.c
mgmt.c Bluetooth: MGMT: Fix possible deadlocks 2024-11-26 11:07:25 -05:00
mgmt_config.c
mgmt_config.h
mgmt_util.c
mgmt_util.h
msft.c
msft.h
sco.c Bluetooth: SCO: remove the redundant sco_conn_put 2024-11-26 11:07:28 -05:00
selftest.c
selftest.h
smp.c
smp.h