Skip to content

Commit d655f4c

Browse files
rsalvetiMichael Scott
authored andcommitted
HACK: hci_core: also track cnt before sending le pkts
Signed-off-by: Ricardo Salveti <[email protected]>
1 parent d869f08 commit d655f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bluetooth/hci_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3938,7 +3938,7 @@ static void hci_sched_le(struct hci_dev *hdev)
39383938
tmp = cnt;
39393939
while (cnt && (chan = hci_chan_sent(hdev, LE_LINK, &quote))) {
39403940
u32 priority = (skb_peek(&chan->data_q))->priority;
3941-
while (quote-- && (skb = skb_peek(&chan->data_q))) {
3941+
while (cnt && quote-- && (skb = skb_peek(&chan->data_q))) {
39423942
BT_DBG("chan %p skb %p len %d priority %u", chan, skb,
39433943
skb->len, skb->priority);
39443944

0 commit comments

Comments
 (0)