diff options
author | Pauli Virtanen <pav@iki.fi> | 2025-02-28 00:28:15 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2025-03-07 20:43:29 +0300 |
commit | 8d74c9106be8da051b22f0cd81e665f17d51ba5d (patch) | |
tree | eeca47adc04f7d24aad88c8368cbf9263b851b63 /net/switchdev/switchdev.c | |
parent | 75ddcd5ad40ecd9fbc9f5a7a2ed0e1e74921db3c (diff) | |
download | linux-8d74c9106be8da051b22f0cd81e665f17d51ba5d.tar.xz |
Bluetooth: SCO: fix sco_conn refcounting on sco_conn_ready
sco_conn refcount shall not be incremented a second time if the sk
already owns the refcount, so hold only when adding new chan.
Add sco_conn_hold() for clarity, as refcnt is never zero here due to the
sco_conn_add().
Fixes SCO socket shutdown not actually closing the SCO connection.
Fixes: ed9588554943 ("Bluetooth: SCO: remove the redundant sco_conn_put")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions