summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp
diff options
context:
space:
mode:
authorArchie Pusaka <apusaka@chromium.org>2023-02-03 17:30:55 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-02-09 14:19:27 -0800
commit0f00cd322d22d4441de51aa80bcce5bb6a8cbb44 (patch)
tree880c9104f28f376f6fcb97d30080c4bacbe17c51 /net/bluetooth/hidp
parent03b0093f7b310493bc944a20f725228cfe0d3fea (diff)
downloadlinux-stable-0f00cd322d22d4441de51aa80bcce5bb6a8cbb44.tar.gz
linux-stable-0f00cd322d22d4441de51aa80bcce5bb6a8cbb44.tar.bz2
linux-stable-0f00cd322d22d4441de51aa80bcce5bb6a8cbb44.zip
Bluetooth: Free potentially unfreed SCO connection
It is possible to initiate a SCO connection while deleting the corresponding ACL connection, e.g. in below scenario: (1) < hci setup sync connect command (2) > hci disconn complete event (for the acl connection) (3) > hci command complete event (for(1), failure) When it happens, hci_cs_setup_sync_conn won't be able to obtain the reference to the SCO connection, so it will be stuck and potentially hinder subsequent connections to the same device. This patch prevents that by also deleting the SCO connection if it is still not established when the corresponding ACL connection is deleted. Signed-off-by: Archie Pusaka <apusaka@chromium.org> Reviewed-by: Ying Hsu <yinghsu@chromium.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/hidp')
0 files changed, 0 insertions, 0 deletions