[PW_SID:1071503] Bluetooth: btintel_pcie: fix TX queue off-by-one#3394
[PW_SID:1071503] Bluetooth: btintel_pcie: fix TX queue off-by-one#3394BluezTestBot wants to merge 2 commits intoworkflowfrom
Conversation
This patch adds workflow files for ci: [sync.yml] - The workflow file for scheduled work - Sync the repo with upstream repo and rebase the workflow branch - Review the patches in the patchwork and creates the PR if needed [ci.yml] - The workflow file for CI tasks - Run CI tests when PR is created Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
btintel_pcie_send_sync() reads the next transmit slot from data->ia.tr_hia[] and uses it as an index into the fixed txq descriptor arrays. The current guard only rejects values strictly greater than txq->count, so an index equal to the queue depth still falls through and is used as the next transmit slot one element past the end. Reject indices at or above the queue depth before preparing the TX descriptor. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
|
CheckPatch |
|
GitLint |
|
SubjectPrefix |
|
BuildKernel |
|
CheckAllWarning |
|
CheckSparse |
|
BuildKernel32 |
|
TestRunnerSetup |
|
TestRunner_l2cap-tester |
|
TestRunner_iso-tester |
|
TestRunner_bnep-tester |
|
TestRunner_mgmt-tester |
|
TestRunner_rfcomm-tester |
|
TestRunner_sco-tester |
|
TestRunner_ioctl-tester |
|
TestRunner_mesh-tester |
|
TestRunner_smp-tester |
|
TestRunner_userchan-tester |
|
IncrementalBuild |
c6e7062 to
0e0806d
Compare
f07ea67 to
9a108c6
Compare
btintel_pcie_send_sync() reads the next transmit slot from
data->ia.tr_hia[] and uses it as an index into the fixed txq descriptor
arrays. The current guard only rejects values strictly greater than
txq->count, so an index equal to the queue depth still falls through and
is used as the next transmit slot one element past the end.
Reject indices at or above the queue depth before preparing the TX
descriptor.
Signed-off-by: Pengpeng Hou pengpeng@iscas.ac.cn
drivers/bluetooth/btintel_pcie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)