We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d869f08 commit d655f4cCopy full SHA for d655f4c
net/bluetooth/hci_core.c
@@ -3938,7 +3938,7 @@ static void hci_sched_le(struct hci_dev *hdev)
3938
tmp = cnt;
3939
while (cnt && (chan = hci_chan_sent(hdev, LE_LINK, "e))) {
3940
u32 priority = (skb_peek(&chan->data_q))->priority;
3941
- while (quote-- && (skb = skb_peek(&chan->data_q))) {
+ while (cnt && quote-- && (skb = skb_peek(&chan->data_q))) {
3942
BT_DBG("chan %p skb %p len %d priority %u", chan, skb,
3943
skb->len, skb->priority);
3944
0 commit comments