Commit 200de7c
Bluetooth: Host: Fix
Fix discrepancy in reference management between calls to
`bt_l2cap_chan_ops.recv` when the application returns `-EINPROGRESS`.
There are two call sites, `l2cap_chan_le_recv_sdu` and
`l2cap_chan_le_recv`, that were inconsistent.
`l2cap_chan_le_recv_sdu` moves the reference, and this patch updates
`l2cap_chan_le_recv` to do the same.
This behavior is also now documented.
This bug has existed since the introduction of this feature in
3151d26.
Signed-off-by: Aleksander Wasaznik <[email protected]>bt_l2cap_chan_ops.recv -EINPROGRESS
1 parent 7066c40 commit 200de7c
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
352 | 357 | | |
353 | 358 | | |
354 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
2566 | 2567 | | |
2567 | 2568 | | |
2568 | 2569 | | |
| 2570 | + | |
2569 | 2571 | | |
2570 | 2572 | | |
2571 | 2573 | | |
| |||
2639 | 2641 | | |
2640 | 2642 | | |
2641 | 2643 | | |
2642 | | - | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
2643 | 2651 | | |
2644 | 2652 | | |
2645 | 2653 | | |
| |||
0 commit comments