Commit 308a3a8
Bluetooth: hci_core: fix list_for_each_entry_rcu usage
Releasing + re-acquiring RCU lock inside list_for_each_entry_rcu() loop
body is not correct.
Fix by taking the update-side hdev->lock instead.
Fixes: c7eaf80 ("Bluetooth: Fix hci_link_tx_to RCU lock usage")
Signed-off-by: Pauli Virtanen <[email protected]>
Reviewed-by: Paul Menzel <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>1 parent 3cae906 commit 308a3a8
1 file changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3417 | 3417 | | |
3418 | 3418 | | |
3419 | 3419 | | |
3420 | | - | |
| 3420 | + | |
3421 | 3421 | | |
3422 | 3422 | | |
3423 | | - | |
| 3423 | + | |
3424 | 3424 | | |
3425 | 3425 | | |
3426 | 3426 | | |
3427 | | - | |
3428 | | - | |
3429 | | - | |
3430 | | - | |
3431 | 3427 | | |
3432 | | - | |
3433 | 3428 | | |
3434 | 3429 | | |
3435 | 3430 | | |
3436 | | - | |
| 3431 | + | |
3437 | 3432 | | |
3438 | 3433 | | |
3439 | 3434 | | |
| |||
0 commit comments