Commit 01aa727
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: ed95885 ("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>1 parent c01c0d4 commit 01aa727
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| |||
1353 | 1361 | | |
1354 | 1362 | | |
1355 | 1363 | | |
| 1364 | + | |
1356 | 1365 | | |
1357 | 1366 | | |
1358 | 1367 | | |
| |||
1411 | 1420 | | |
1412 | 1421 | | |
1413 | 1422 | | |
1414 | | - | |
| 1423 | + | |
1415 | 1424 | | |
| 1425 | + | |
| 1426 | + | |
1416 | 1427 | | |
1417 | 1428 | | |
1418 | 1429 | | |
| |||
0 commit comments